Skip to content

Commit 6a58852

Browse files
authored
Merge pull request #159 from InsightSoftwareConsortium/numpyAlways
ENH: We now always depend on numpy, so specify that in setup.py
2 parents 4ad2053 + 2af3aa6 commit 6a58852

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/setup_py_configure.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,15 @@ def update_wheel_setup_py_parameters():
182182
'-DITKPythonPackage_WHEEL_NAME:STRING=%s' % wheel_name
183183
])
184184

185+
# install_requires
186+
wheel_depends = get_wheel_dependencies()[wheel_name]
187+
185188
# py_modules
186189
if wheel_name != 'itk-core':
187190
params['SETUP_PY_MODULES'] = r''
191+
else:
192+
wheel_depends.append('numpy')
188193

189-
# install_requires
190-
wheel_depends = get_wheel_dependencies()[wheel_name]
191194
params['SETUP_INSTALL_REQUIRES'] = list_to_str(wheel_depends)
192195

193196
SETUP_PY_PARAMETERS[wheel_name] = params

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
keywords='ITK InsightToolkit segmentation registration image imaging',
7171
url=r'https://itk.org/',
7272
install_requires=[
73+
r'numpy',
7374
]
7475
)

0 commit comments

Comments
 (0)