forked from PennLINC/qsiprep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (28 loc) · 1.02 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" fmriprep setup script """
import sys
from setuptools import setup
from setuptools.extension import Extension
import versioneer
# Give setuptools a hint to complain if it's too old a version
# 30.3.0 allows us to put most metadata in setup.cfg
# Should match pyproject.toml
# Not going to help us much without numpy or new pip, but gives us a shot
SETUP_REQUIRES = ['setuptools >= 40.8', 'numpy', 'cython']
# This enables setuptools to install wheel on-the-fly
SETUP_REQUIRES += ['wheel'] if 'bdist_wheel' in sys.argv else []
if __name__ == '__main__':
from numpy import get_include
extensions = [Extension(
"qsiprep.utils.maths",
["qsiprep/utils/maths.pyx"],
include_dirs=[get_include(), "/usr/local/include/"],
library_dirs=["/usr/lib/"]),
]
setup(name='qsiprep',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
setup_requires=SETUP_REQUIRES,
ext_modules=extensions,
)