blob: abb8a187366449e2580ef373c6a523b8fb32a1dc (
plain)
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
|
#!/usr/bin/env python3
"""Setup file for the Python nitime package.
This file only contains cython components.
See pyproject.toml for the remaining configuration.
"""
from setuptools import setup
try:
from setuptools import Extension
from Cython.Build import cythonize
from numpy import get_include
# add Cython extensions to the setup options
exts = [
Extension(
'nitime._utils',
['nitime/_utils.pyx'],
include_dirs=[get_include()],
define_macros=[('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION')],
)
]
opts = {'ext_modules': cythonize(exts, language_level='3')}
except ImportError:
# no loop for you!
opts = {}
# Now call the actual setup function
if __name__ == '__main__':
setup(**opts)
|