-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·40 lines (34 loc) · 1.19 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
from setuptools import setup, Extension
from Cython.Build import cythonize
from Cython.Compiler import Options
import numpy
# These are optional
Options.docstrings = True
Options.annotate = False
# Modules to be compiled and include_dirs when necessary
extensions = [
# Extension(
# "pyctmctree.inpyranoid_c",
# ["src/pyctmctree/inpyranoid_c.pyx"],
# ),
Extension(
"chromatinhd.loaders.fragments_helpers",
["src/chromatinhd/loaders/fragments_helpers.pyx"],
include_dirs=[numpy.get_include()],
py_limited_api=True,
),
Extension(
"chromatinhd.data.motifscan.scan_helpers",
["src/chromatinhd/data/motifscan/scan_helpers.pyx"],
include_dirs=[numpy.get_include()],
py_limited_api=True,
),
]
# This is the function that is executed
setup(
name='chromatinhd', # Required
# A list of compiler Directives is available at
# https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-directives
# external to be compiled
ext_modules = cythonize(extensions, compiler_directives={"language_level": 3, "profile": False}),
)