File: setup.py

package info (click to toggle)
nitime 0.11-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,496 kB
  • sloc: python: 10,202; makefile: 95; sh: 34
file content (30 lines) | stat: -rwxr-xr-x 799 bytes parent folder | download
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)