-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (56 loc) · 1.38 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
54
55
56
57
58
59
60
61
62
63
64
65
from setuptools import setup, Extension, find_packages
import sys
with open("VERSION") as fp:
package_version = fp.read().strip()
extended_numpy = Extension(
'geometrypy',
sources = [
'profilerTools/geometrypy/geometrypy.c',
]
)
ext_gsl_ridge = Extension(
'gslpyridge',
sources = [
'profilerTools/gslpy_ridge/gslpy_ridge.c',
],
libraries = [
'gsl', 'gslcblas'
],
)
opt_ext = []
gen_ext = []
if '--without-geometrypy' in sys.argv:
sys.argv.remove('--without-geometrypy')
else:
opt_ext.append(extended_numpy)
gen_ext.append(extended_numpy)
if '--without-gsl' in sys.argv:
sys.argv.remove('--without-gsl')
else:
opt_ext.append(ext_gsl_ridge)
setup (
name='profilerOpt',
version=package_version,
python_requires='>=3.6',
packages=find_packages(),
ext_modules=opt_ext,
entry_points={
'console_scripts': [
'profilerOpt=profilerTools.profilerOpt.profilerOpt:main',
]
},
install_requires=['numpy', 'deap', 'scikit-learn'],
)
setup (
name='profilerGen',
version=package_version,
python_requires='>=3.6',
packages=find_packages(),
ext_modules=gen_ext,
entry_points={
'console_scripts': [
'profilerGen=profilerTools.profilerGen.profilerGen:main',
]
},
install_requires=['numpy', 'deap', 'scikit-learn'],
)