-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
80 lines (67 loc) · 2.09 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
"""repex: a python mpi-enabled replica exchange driver.
"""
from __future__ import print_function
DOCLINES = __doc__.split("\n")
import os
import sys
import shutil
import tempfile
import subprocess
from distutils.ccompiler import new_compiler
from setuptools import setup, Extension
import sys
import numpy
try:
from Cython.Distutils import build_ext
setup_kwargs = {'cmdclass': {'build_ext': build_ext}}
cython_extension = 'pyx'
except ImportError:
setup_kwargs = {}
cython_extension = 'c'
try:
# add an optional command line flag --no-install-deps to setup.py
# to turn off setuptools automatic downloading of dependencies
sys.argv.remove('--no-install-deps')
no_install_deps = True
except ValueError:
no_install_deps = False
##########################
VERSION = "0.1"
ISRELEASED = False
__version__ = VERSION
##########################
CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: C
Programming Language :: Python
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: Bio-Informatics
Topic :: Scientific/Engineering :: Chemistry
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
"""
extensions = []
setup(name='repex',
author='Kyle A. Beauchamp',
author_email='kyleabeauchamp@gmail.com',
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
version=__version__,
license='GPLv3+',
url='http://github.com/ChoderaLab/repex',
platforms=['Linux', 'Mac OS-X', 'Unix'],
classifiers=CLASSIFIERS.splitlines(),
packages=["repex"],
package_dir={'mdtraj': 'MDTraj', 'mdtraj.scripts': 'scripts'},
#install_requires=['numpy'], # See https://github.com/pydata/patsy/issues/5 for why to avoid doing this.
zip_safe=False,
scripts=[],
ext_modules=extensions,
package_data={'repex': ['tests-nose/*']},
**setup_kwargs
)