-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
91 lines (84 loc) · 2.91 KB
/
setup.py
File metadata and controls
91 lines (84 loc) · 2.91 KB
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
import sys
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import versioneer
import numpy as np
if __name__ == "__main__":
if sys.version_info < (3, 5):
raise ImportError("requires Python>=3.5")
cython_paths = [
"chromo/mc/move_funcs.pyx",
"chromo/polymers.pyx",
"chromo/fields.pyx",
"chromo/binders.pyx",
"chromo/util/bead_selection.pyx",
"chromo/util/linalg.pyx",
"chromo/mc/mc_sim.pyx",
"chromo/mc/moves.pyx"
]
extensions = [
Extension(
path.split(".")[0].replace("/", "."),
sources=[path],
language="c++"
) for path in cython_paths
]
setup(
name="chromo",
author="Spakowitz Lab (Joseph Wakim, Bruno Beltran, Andrew Spakowitz)",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
url="https://github.com/SpakowitzLab/chromo",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"Development Status :: 1 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Cython",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
],
packages=find_packages(include=['chromo', 'chromo.mc', 'chromo.util']),
install_requires=[
# "bioframe~=0.3.3",
"Cython~=0.29.32",
"IPython~=8.4.0",
"matplotlib~=3.5.2",
"numba~=0.57.1",
"numpy~=1.21.6",
"pandas~=1.3.5",
"scikit_learn~=1.1.2",
"scipy~=1.11.4",
"setuptools~=68.0.0",
"notebook~=6.0.0",
"jupyter~=1.0.0",
"pytest~=7.4.3",
'wlcstat @ git+https://github.com/JosephWakim/wlcstat.git'
],
include_package_data=True,
extras_require = {
"dev": [
"check-manifest~=0.48",
"karma_sphinx_theme~=0.0.8",
"sphinx~=4.4.0",
"nbsphinx~=0.8.8",
"sphinx_theme~=1.0",
"sphinx_rtd_theme~=1.0.0"
]
},
include_dirs=[
np.get_include(), "chromo", "chromo/util", "chromo/mc",
"analyses", "analyses/adsorption", "analyses/characterizations",
"analyses/cmaps", "analyses/equilibration", "analyses/modifications"
],
ext_modules=cythonize(
extensions,
annotate=True,
compiler_directives={"cdivision": False}
)
)