-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (51 loc) · 1.63 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
from __future__ import absolute_import, division, print_function
# noinspection PyUnresolvedReferences
from distutils.core import setup# , Extension
# from distutils.sysconfig import get_python_inc
from Cython.Build import cythonize
import numpy as np
import os
# The commented out code refers to files that have been removed; I've retained
# the code for future reference.
# pythonIncDir = get_python_inc()
# numpyIncDir = os.path.join(os.path.dirname(np.__file__), "core", "include", "numpy")
# polymerize_module = Extension(
# name = "wholecell.utils._polymerize",
# sources = ["wholecell/utils/polymerize.c"],
# include_dirs = [pythonIncDir, numpyIncDir],
# libraries = ["gsl", "gslcblas"],
# extra_compile_args = ["-fPIC"]
# )
# setup(name = "Polymerize",
# version = "0.0.1",
# description = "Polymerize module",
# ext_modules = [polymerize_module]
# )
build_sequences_module = cythonize(
os.path.join("wholecell", "utils", "_build_sequences.pyx"),
# annotate=True,
)
setup(
name = "Build sequences",
ext_modules = build_sequences_module,
include_dirs = [np.get_include()]
)
complexation_module = cythonize(
os.path.join("wholecell", "utils", "mc_complexation.pyx"),
# annotate=True,
)
setup(
name = "Monte-carlo complexation",
ext_modules = complexation_module,
include_dirs = [np.get_include()]
)
fast_polymerize_sums_module = cythonize(
os.path.join("wholecell", "utils", "_fastsums.pyx"),
#compiler_directives = {'linetrace': True},
# annotate=True, # emit an html file with annotated C code
)
setup(
name = "Fast polymerize sums",
ext_modules = fast_polymerize_sums_module,
include_dirs = [np.get_include()]
)