forked from pyranges/ncls
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (28 loc) · 846 Bytes
/
setup.py
File metadata and controls
37 lines (28 loc) · 846 Bytes
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
import os
from setuptools import Extension
from distutils.core import setup
dir_path = os.path.dirname(os.path.realpath(__file__))
include_dirs = [dir_path + "/ncls/src", dir_path]
extensions = [
Extension(
"ncls.src.ncls",
["ncls/src/ncls.pyx", "ncls/src/intervaldb.c"],
# define_macros=macros,
include_dirs=include_dirs,
),
Extension(
"ncls.src.ncls32",
["ncls/src/ncls32.pyx", "ncls/src/intervaldb32.c"],
# define_macros=macros,
include_dirs=include_dirs,
),
Extension(
"ncls.src.fncls",
["ncls/src/fncls.pyx", "ncls/src/fintervaldb.c"],
# define_macros=macros,
include_dirs=include_dirs,
),
]
from Cython.Build import cythonize
ext_modules = cythonize(extensions, language_level=2)
setup(ext_modules=ext_modules)