root/lang/python/otolog4linux/trunk/setup.py

Revision 6632, 1.8 kB (checked in by mattn, 10 months ago)

lang/python/otolog4linux/trunk/src/plugin.py,
lang/python/otolog4linux/trunk/src/controller.py,
lang/python/otolog4linux/trunk/src/server.py,
lang/python/otolog4linux/trunk/otolog4linux,
lang/python/otolog4linux/trunk/setup.py,
lang/python/otolog4linux/trunk/data/plugins/jacket_playlog.py,
lang/python/otolog4linux/trunk/data/plugins/server_otolog.py,
lang/python/otolog4linux/trunk/data/plugins/player_mpc.py,
lang/python/otolog4linux/trunk/data/plugins/server_playlog.py,
lang/python/otolog4linux/trunk/data/plugins/player_kscd.py,
lang/python/otolog4linux/trunk/data/plugins/player_rhythmbox.py,
lang/python/otolog4linux/trunk/data/plugins/player_xmms.py,
lang/python/otolog4linux/trunk/data/plugins/player_itunes.py,
lang/python/otolog4linux/trunk/data/plugins/jacket_otolog.py,
lang/python/otolog4linux/trunk/data/plugins/jacket_amazon.py,
lang/python/otolog4linux/trunk/data/plugins/player_amarok.py,
lang/python/otolog4linux/trunk/data/otolog4linux_install.py,
lang/python/otolog4linux/trunk/data/otolog4linux_win32.pyw,
lang/python/otolog4linux/trunk/PKG-INFO:

  • change tab codes to space codes.
  • fixed hung about gtk.threads_init().
  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3import os
4import sys
5import glob
6from distutils.core import setup, Extension
7
8translations = []
9for po in glob.glob('messages/*.po'):
10    translations.append((os.path.join("share", "otolog4linux", "messages"), [po,]))
11    mo = "%s.gmo" % os.path.splitext(po)[0]
12    os.system("msgfmt -o " + mo + " " + po)
13    if os.access(mo, os.F_OK):
14        translations.append((os.path.join("share", "otolog4linux", "messages"), [mo,]))
15
16data_files = [
17        ('share/otolog4linux', ['LICENSE', 'README', 'README.ja']),
18        ('share/applications', ['data/otolog4linux.desktop']),
19        ('share/otolog4linux', ['data/otolog4linux_install.py']),
20        ('share/otolog4linux', ['data/otolog4linux_win32.pyw']),
21        ('share/icons', ['data/otolog4linux.png', 'data/otolog4linux.wic']),
22    ] + translations
23for f in glob.glob('data/plugins/*.py'):
24    if os.access(f, os.F_OK):
25        data_files.append(('share/otolog4linux/plugins', [f,]))
26
27def scripts():
28    files = [ "otolog4linux" ]
29    if sys.platform == "win32" or \
30            (len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wininst'):
31        files.append("data/otolog4linux_install.py")
32    return files
33
34setup(
35    name="otolog4linux",
36    url="http://mattn.kaoriya.net/",
37    description="otolog controller for linux",
38    author="Yasuhiro Matsumoto",
39    author_email="mattn.jp@gmail.com",
40    version="0.05",
41    scripts=scripts(),
42    packages=["otolog4linux"],
43    package_dir={'otolog4linux': 'src', 'otolog4linux/plugins': 'src/plugins'},
44    data_files=data_files,
45    license = 'GPL',
46    long_description="""
47Otolog is music logging service. The music information
48 which you are playing in iTunes was distributed from otolog server.
49This application get the information from the un*x multimedia player,
50 and post the otolog server.
51"""
52)
53
Note: See TracBrowser for help on using the browser.