-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
98 lines (84 loc) · 3.33 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"""AssayTools: Assay modeling and Bayesian analysis made easy.
AssayTools is a python library that allows users to model automated assays and analyze assay data using powerful Bayesian techniques that allow complete characterization of the uncertainty in fit models.
"""
from __future__ import print_function, absolute_import
DOCLINES = __doc__.split("\n")
import sys
from setuptools import setup, Extension
sys.path.insert(0, '.')
from basesetup import (find_packages, write_version_py, build_ext,
StaticLibrary, CompilerDetection)
try:
import numpy
except ImportError:
print('Building and running assaytools requires numpy', file=sys.stderr)
sys.exit(1)
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
setup_kwargs = {}
if 'setuptools' in sys.modules:
setup_kwargs['zip_safe'] = False
setup_kwargs['entry_points'] = {'console_scripts':
['xml2png = assaytools.scripts.xml2png:entry_point',
'quickmodel = assaytools.scripts.quickmodel:entry_point',
'ipnbdoctest = assaytools.scripts.ipnbdoctest:entry_point',
'calculate_Lstated_array = assaytools.scripts.calculate_Lstated_array:entry_point',
'plot_trace = assaytools.scripts.plot_trace:entry_point']}
if sys.version_info[0] == 2:
# required to fix cythoninze() for old versions of setuptools on
# python 2
m = sys.modules['setuptools.extension']
m.Extension.__dict__ = m._Extension.__dict__
else:
setup_kwargs['scripts'] = ['scripts/xml2png.py','scripts/quickmodel.py','scripts/calculate_Lstated_array.py', 'scripts/plot_trace.py']
##########################
VERSION = "0.3.1"
ISRELEASED = False
__version__ = VERSION
##########################
CLASSIFIERS = """\
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
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
"""
write_version_py(VERSION, ISRELEASED)
setup(name='assaytools',
author='John D. Chodera',
author_email='[email protected]',
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
version=__version__,
license='LGPLv2.1+',
url='http://assaytools.choderalab.org',
download_url = "https://github.com/choderalab/assaytools/releases/latest",
platforms=['Linux', 'Mac OS-X', 'Unix', 'Windows'],
classifiers=CLASSIFIERS.splitlines(),
packages=find_packages(),
package_dir={'assaytools': 'AssayTools', 'assaytools.scripts': 'scripts'},
cmdclass={'build_ext': build_ext},
package_data={'assaytools.html': ['static/*']},
install_requires=[
#'numpy',
#'pandas',
#'pymc',
#'matplotlib',
#'seaborn',
#'lxml',
#'autoprotocol'
],
**setup_kwargs)