forked from haddocking/disvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·55 lines (48 loc) · 1.6 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
#! env/bin/python
import os.path
from setuptools import setup
from setuptools.extension import Extension
import numpy
try:
from Cython.Distutils import build_ext
from Cython.Build import cythonize
CYTHON = True
except ImportError:
CYTHON = False
description = ('Quantifying and visualizing the interaction space '
'of distance-constrained macromolecular complexes')
packages = ['disvis', 'disvis.IO']
package_data = {'disvis': [os.path.join('data', '*.npy'), 'kernels.cl']}
ext = '.pyx' if CYTHON else '.c'
ext_modules = [Extension("disvis.libdisvis",
[os.path.join("src", "libdisvis" + ext)],
include_dirs=[numpy.get_include()],
extra_compile_args=['-ffast-math']),
Extension("disvis._extensions",
[os.path.join("src", "_extensions.c")],
include_dirs=[numpy.get_include()],
extra_compile_args=['-ffast-math'],
),
]
cmdclass = {}
if CYTHON:
ext_modules = cythonize(ext_modules)
cmdclass['build_ext'] = build_ext
requirements = ["numpy",]
setup(name="disvis",
version='2.0.0',
description=description,
url="https://github.com/haddocking/disvis",
author='Gydo C.P. van Zundert',
author_email='[email protected]',
packages=packages,
cmdclass = cmdclass,
ext_modules=ext_modules,
package_data = package_data,
install_requires=requirements,
entry_points={
'console_scripts': [
'disvis = disvis.main:main',
]
},
)