File: setup.py

package info (click to toggle)
pybridge 0.3.0-7
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 712 kB
  • ctags: 562
  • sloc: python: 3,182; makefile: 72
file content (37 lines) | stat: -rw-r--r-- 1,404 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env python

import glob
from distutils.core import setup
from pybridge import __version__

# To create a standalone Windows distribution, run "python setup.py py2exe"
# and then copy the GTK/etc and GTK/lib directories into dist/


try:
    import py2exe
except ImportError:
    pass

setup(
    name = 'pybridge',
    version = __version__,
    author = 'Michael Banks',
    author_email = 'michael@banksie.co.uk',
    url = 'http://sourceforge.net/projects/pybridge/',
    description = 'A free online bridge game.',
    download_url = 'http://sourceforge.net/project/showfiles.php?group_id=114287',
    packages = ['pybridge', 'pybridge.bridge', 'pybridge.interfaces', 'pybridge.network', 'pybridge.server', 'pybridge.ui'],
    scripts = ['bin/pybridge', 'bin/pybridge-server'],
    data_files = [('share/applications', ['bin/pybridge.desktop']),
                  ('share/doc/pybridge', ['AUTHORS', 'COPYING', 'INSTALL', 'NEWS', 'README']),
                  ('share/pybridge/glade', glob.glob('glade/*.glade')),
                  ('share/pybridge/pixmaps', glob.glob('pixmaps/*')), ],
    
    # py2exe
    console = ['bin/pybridge-server'],
    windows = [{'script' : 'bin/pybridge', 'icon_resources' : [(1, 'pixmaps/pybridge.ico')]}],
    options = {'py2exe': {'packages' : 'encodings',
                          'includes' : 'cairo, pango, pangocairo, atk, gobject, gtk.glade' } },
)