-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·34 lines (31 loc) · 1.14 KB
/
setup.py
File metadata and controls
executable file
·34 lines (31 loc) · 1.14 KB
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
#!/usr/bin/env python
from distutils.core import setup
try:
import py2exe
has_py2exe = True
except ImportError:
has_py2exe = False
setup_kwargs = {
'name': 'siptrack',
'version': '2.0.0',
'description': 'Siptrack IP/Device Manager Client Library',
'author': 'Simon Ekstrand',
'author_email': 'simon@theoak.se',
'url': 'http://siptrack.theoak.se/',
'license': 'BSD',
'packages': ['siptracklib', 'siptracklib.network', 'siptracklib.external',
'siptracklib.transport', 'siptracklib.transport.xmlrpc'],
'scripts': ['siptrack', 'tools/siptrack-generate-dns'],
'data_files': [('share/siptrack/icons', ['icons/64x64.png'])],
'options': {},
}
if has_py2exe:
setup_kwargs['console'] = ['siptrack',
'tools/siptrack-generate-dns']
setup_kwargs['windows'] = ['siptrack-no-console']
# setup_kwargs['options']['py2exe'] = {
# 'includes': 'cairo, pango, pangocairo, atk, gobject'
# }
# setup_kwargs['data_files'] = [('icons', ['icons/64x64.png'])]
setup_kwargs['options']['py2exe'] = {}
setup(**setup_kwargs)