forked from G-Node/python-odml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (46 loc) · 1.17 KB
/
setup.py
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
50
51
52
53
#!/usr/bin/env python
import sys
import os
import glob
try:
from setuptools import setup
except ImportError as ex:
from distutils.core import setup
kwargs = {}
try:
# only necessary for the windows build
import py2exe
kwargs.update({'console': ['odml-gui']})
except ImportError:
py2exe = None
packages = [
'odml',
'odml.tools'
]
if '--no-gui' in sys.argv:
sys.argv.remove('--no-gui')
else:
packages.append('odml.gui')
packages.append('odml.gui.dnd')
packages.append('odml.gui.treemodel')
kwargs['data_files'] = [
('share/applications', ['odml.desktop']),
('share/pixmaps', glob.glob(os.path.join("images", "*")))
]
kwargs['scripts'] = ['odml-gui']
setup(name='odML',
version='1.0',
description='open metadata Markup Language',
author='Hagen Fritsch',
author_email='[email protected]',
url='http://www.g-node.org/projects/odml',
packages=packages,
test_suite = 'test',
options={
'py2exe': {
'packages': 'odml',
'includes': 'cairo, pango, pangocairo, atk, gobject, gio, lxml, gzip, enum34',
}
},
**kwargs
)