-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
33 lines (27 loc) · 985 Bytes
/
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
import sys
import numpy as np
from setuptools import setup, Extension
import Cython
from Cython.Distutils import build_ext
from Cython.Build import cythonize
try:
numpy_include = np.get_include()
except AttributeError:
numpy_include = np.get_numpy_include()
# check Python version
if not (sys.version_info[0] == 2 and sys.version_info[1] >= 6):
sys.exit("You need Python 2.6.x or Python 2.7.x to install the DockBox package!")
ext_modules = [Extension(
name='dockbox.pyqcprot',
sources=["dockbox/pyqcprot.pyx"],
include_dirs=[numpy_include])]
setup(name='dockbox',
version='1.4',
packages=['dockbox'],
scripts=['bin/rundbx', 'bin/extract_top_poses'],
install_requires=['mdkit', 'pandas<=0.24.2', 'nwalign', 'oldnumeric'],
ext_modules = cythonize(ext_modules),
license='LICENSE.txt',
description='Platform package to simplify the use of docking programs and consensus methods',
long_description=open('README.rst').read(),
)