forked from scilus/scilpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (24 loc) · 1.05 KB
/
setup.py
File metadata and controls
29 lines (24 loc) · 1.05 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
from Cython.Build import cythonize
import numpy
from setuptools import setup, Extension
define_macros = [('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')]
# Modules to be compiled and include_dirs when necessary
extensions = [
Extension('scilpy.tractograms.uncompress',
['src/scilpy/tractograms/uncompress.pyx'],
define_macros=define_macros),
Extension('scilpy.tractanalysis.voxel_boundary_intersection',
['src/scilpy/tractanalysis/voxel_boundary_intersection.pyx'],
define_macros=define_macros),
Extension('scilpy.tractanalysis.streamlines_metrics',
['src/scilpy/tractanalysis/streamlines_metrics.pyx'],
define_macros=define_macros)]
# This is the function that is executed
setup(
name='scilpy',
# 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),
include_dirs=[numpy.get_include()]
)