File: setup.py

package info (click to toggle)
solfege 2.0.4-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,200 kB
  • ctags: 1,844
  • sloc: python: 12,160; xml: 5,458; ansic: 1,486; makefile: 562; sh: 233
file content (49 lines) | stat: -rw-r--r-- 2,616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python

# Warning: This setup.py script is *only* used to create the MS Windows
# installer. It will break on a real OS.

import glob
from distutils.core import setup
import py2exe
import src.configureoutput
import sys, os

def get_files(file_spec):
    path = os.path.normpath(file_spec)
    return filter(lambda x: not x.endswith('CVS'), glob.glob(path))

setup(name="solfege",
      version=src.configureoutput.VERSION_STRING,
      author="Tom Cato Amundsen",
      author_email="tca@gnu.org",
      url="http://www.solfege.org",
      data_files=[('graphics', get_files('graphics/*.png')),
                  ('soundcard', ['soundcard/winmidi.pyd']),
                  ('feta', get_files('feta/*.xpm')),
                  ('gnomeemu/xpm', get_files('gnomeemu/xpm/*.xpm')),
                  ('online-docs/C', get_files('online-docs/C/*.html')),
                  ('online-docs/no', get_files('online-docs/no/*.html')),
                  ('online-docs/nl', get_files('online-docs/nl/*.html')),
                  ('online-docs/no', get_files('online-docs/no/*.html')),
                  ('online-docs/ru', get_files('online-docs/ru/*.html')),
                  ('online-docs/es_MX', get_files('online-docs/es_MX/*.html')),
                  ('online-docs/png', get_files('online-docs/png/*.png')),
                  ('share/locale/da/LC_MESSAGES', get_files('share/locale/da/LC_MESSAGES/*.mo')),
                  ('share/locale/de/LC_MESSAGES', get_files('share/locale/de/LC_MESSAGES/*.mo')),
                  ('share/locale/es/LC_MESSAGES', get_files('share/locale/es/LC_MESSAGES/*.mo')),
                  ('share/locale/es_MX/LC_MESSAGES', get_files('share/locale/es_MX/LC_MESSAGES/*.mo')),
                  ('share/locale/fr/LC_MESSAGES', get_files('share/locale/fr/LC_MESSAGES/*.mo')),
                  ('share/locale/it/LC_MESSAGES', get_files('share/locale/it/LC_MESSAGES/*.mo')),
                  ('share/locale/nl/LC_MESSAGES', get_files('share/locale/nl/LC_MESSAGES/*.mo')),
                  ('share/locale/no/LC_MESSAGES', get_files('share/locale/no/LC_MESSAGES/*.mo')),
                  ('share/locale/ru/LC_MESSAGES', get_files('share/locale/ru/LC_MESSAGES/*.mo')),
                  ('lesson-files', get_files('lesson-files/*')),
                  ('.', ['solfege.py', 'default.config', 'solfege.gtkrc',
                         'AUTHORS.txt', 'COPYING.txt', 'README.txt',
                         'INSTALL.txt', 'INSTALL.win32.txt', 'FAQ.txt',
                         'solfege.bat'])
      ],
      packages=['gnomeemu','mpd', 'src', 'soundcard'],
      scripts=["solfege.py"],
)