-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.mac.py
executable file
·139 lines (120 loc) · 2.81 KB
/
setup.mac.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/usr/bin/env python
# coding=utf-8
import os, sys
from copy import copy
import collections
from setuptools import setup, find_packages
__version__ = open('VERSION','rU').read()
sys.path.insert(0,'pathomx')
# Defaults for py2app / cx_Freeze
build_py2app=dict(
argv_emulation=True,
includes=[
'PyQt5',
"PyQt5.uic.port_v3.proxy_base",
'numpy',
'scipy',
'pandas',
'matplotlib',
'dateutil',
'requests',
'IPython',
'IPython.qt.client',
'IPython.qt.inprocess',
'IPython.qt.manager',
'IPython.utils',
'sklearn',
'sklearn.decomposition',
'sklearn.cross_decomposition',
'nose',
'nose.tools',
'nmrglue',
'nmrglue.fileio.fileiobase',
'gpml2svg',
'icoshift',
'mplstyler',
'pyqtconfig',
'custom_exceptions',
"zmq",
"zmq.utils.garbage",
"zmq.backend.cython",
"pygments",
'pygments.styles',
'pygments.styles.default',
'sip',
'pydot',
'jinja2',
'jinja2.ext',
'rpy2',
'pymatbridge',
],
excludes=[
'_xmlplus',
'test',
'networkx',
'wx',
'mpl-data',
'Tkinter',
"collections.abc",
'nose',
'PyQt4',
'PySide',
'debug',
# Bizarre inclusions with build ?due to sip error
'youtube_dl',
'astroid',
'werkzeug',
'smartypants',
'pep8ify',
'modernize',
'pyflakes',
'frosted',
'flask',
'jedi',
'autopep8',
'twiggy',
'pyqtgraph',
'growl',
'feedgenerator',
'sphinx',
],
resources=[
'pathomx/database',
'pathomx/demos',
'pathomx/html',
'pathomx/icons',
'pathomx/identities',
'pathomx/plugins',
'pathomx/static',
'pathomx/translations',
'VERSION',
'README.md',
],
plist=dict(
CFBundleName = "Pathomx",
CFBundleShortVersionString = __version__,
CFBundleGetInfoString = "Pathomx %s" % __version__,
CFBundleExecutable = "Pathomx",
CFBundleIdentifier = "org.pathomx.pathomx",
),
iconfile='pathomx/static/icon.icns',
#/usr/local/Cellar/qt5/5.3.2/plugins
qt_plugins=[
'platforms/libqcocoa.dylib',
'imageformats',
'printsupport/libcocoaprintersupport.dylib',
'accessible',
],
)
setup(
name='Pathomx',
version=__version__,
author='Martin Fitzpatrick',
packages = find_packages(),
include_package_data = True,
app=['Pathomx.py'],
options={
'py2app': build_py2app,
},
setup_requires=['py2app'],
)