Skip to content

Commit 657b999

Browse files
effigiesoesteban
authored andcommitted
MNT: Drop cython/numpy build requirements
1 parent 99ad4e6 commit 657b999

File tree

3 files changed

+11
-23
lines changed

3 files changed

+11
-23
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ RUN apt-get update && \
1111
bzip2 \
1212
ca-certificates \
1313
xvfb \
14-
cython3 \
1514
build-essential \
1615
autoconf \
1716
libtool \

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build-system]
2-
requires = ["setuptools >= 40.8.0", "wheel", "numpy", "cython"]
2+
requires = ["setuptools >= 40.8.0", "wheel"]

setup.py

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,21 @@
33
""" fmriprep setup script """
44
import sys
55
from setuptools import setup
6-
from setuptools.extension import Extension
76
import versioneer
87

98

109
# Give setuptools a hint to complain if it's too old a version
11-
# 30.3.0 allows us to put most metadata in setup.cfg
10+
# 40.8.0 allows us to put most metadata in setup.cfg
1211
# Should match pyproject.toml
13-
# Not going to help us much without numpy or new pip, but gives us a shot
14-
SETUP_REQUIRES = ['setuptools >= 40.8', 'numpy', 'cython']
12+
SETUP_REQUIRES = ["setuptools >= 40.8"]
1513
# This enables setuptools to install wheel on-the-fly
16-
SETUP_REQUIRES += ['wheel'] if 'bdist_wheel' in sys.argv else []
14+
SETUP_REQUIRES += ["wheel"] if "bdist_wheel" in sys.argv else []
1715

1816

19-
if __name__ == '__main__':
20-
from numpy import get_include
21-
22-
extensions = [Extension(
23-
"fmriprep.utils.maths",
24-
["fmriprep/utils/maths.pyx"],
25-
include_dirs=[get_include(), "/usr/local/include/"],
26-
library_dirs=["/usr/lib/"]),
27-
]
28-
29-
setup(name='fmriprep',
30-
version=versioneer.get_version(),
31-
cmdclass=versioneer.get_cmdclass(),
32-
setup_requires=SETUP_REQUIRES,
33-
ext_modules=extensions,
34-
)
17+
if __name__ == "__main__":
18+
setup(
19+
name="fmriprep",
20+
version=versioneer.get_version(),
21+
cmdclass=versioneer.get_cmdclass(),
22+
setup_requires=SETUP_REQUIRES,
23+
)

0 commit comments

Comments
 (0)