Skip to content

Commit c380cf7

Browse files
committed
Install NumPy when testing virtualenv installs
The NumPy bridge is now enabled by default in the build, and loading all the modules will result in an `import numpy` error otherwise.
1 parent bc9b80f commit c380cf7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/internal/manylinux-build-wheels.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ for PYBIN in "${PYBINARIES[@]}"; do
8989
continue
9090
fi
9191
${PYBIN}/pip install itk --user --no-cache-dir --no-index -f /work/dist
92+
${PYBIN}/pip install --user numpy
9293
(cd $HOME; ${PYBIN}/python -c 'from itk import ITKCommon;')
94+
(cd $HOME; ${PYBIN}/python -c 'import itk; image = itk.Image[itk.UC, 2].New()')
9395
(cd $HOME; ${PYBIN}/python -c 'import itkConfig; itkConfig.LazyLoading = False; import itk;')
9496
done

‎scripts/macpython-build-wheels.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ $DELOCATE_WHEEL ${SCRIPT_DIR}/../dist/*.whl # copies library dependencies into w
9595
# Install packages and test
9696
for VENV in "${VENVS[@]}"; do
9797
${VENV}/bin/pip install itk --no-cache-dir --no-index -f ${SCRIPT_DIR}/../dist
98+
${VENV}/bin/pip install numpy
9899
(cd $HOME; ${VENV}/bin/python -c 'import itk;')
99100
(cd $HOME; ${VENV}/bin/python -c 'import itk; image = itk.Image[itk.UC, 2].New()')
101+
(cd $HOME; ${VENV}/bin/python -c 'import itkConfig; itkConfig.LazyLoading = False; import itk;')
100102
done

0 commit comments

Comments
 (0)