@@ -28,7 +28,7 @@ SINGLE_WHEEL=0
2828
2929# Compile wheels re-using standalone project and archive cache
3030for PYBIN in " ${PYBINARIES[@]} " ; do
31- PYTHON_EXECUTABLE=${PYBIN} /python
31+ export PYTHON_EXECUTABLE=${PYBIN} /python
3232 PYTHON_INCLUDE_DIR=$( find -L ${PYBIN} /../include/ -name Python.h -exec dirname {} \; )
3333
3434 echo " "
@@ -43,6 +43,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
4343 source_path=/work/standalone-${ARCH} -build/ITK-source
4444 build_path=/work/ITK-$( basename $( dirname ${PYBIN} ) ) -manylinux1_${ARCH}
4545 SETUP_PY_CONFIGURE=" ${script_dir} /../setup_py_configure.py"
46+ SKBUILD_CMAKE_INSTALL_PREFIX=$( ${PYTHON_EXECUTABLE} -c " from skbuild.constants import CMAKE_INSTALL_DIR; print(CMAKE_INSTALL_DIR)" )
4647
4748 # Clean up previous invocations
4849 rm -rf ${build_path}
@@ -93,7 +94,7 @@ for PYBIN in "${PYBINARIES[@]}"; do
9394 -DWRAP_ITK_INSTALL_COMPONENT_IDENTIFIER:STRING=PythonWheel \
9495 -DWRAP_ITK_INSTALL_COMPONENT_PER_MODULE:BOOL=ON \
9596 -DITK_WRAP_unsigned_short:BOOL=ON \
96- -DPY_SITE_PACKAGES_PATH:PATH=${script_dir} /../../_skbuild/cmake-install \
97+ -DPY_SITE_PACKAGES_PATH:PATH=" . " \
9798 -DITK_LEGACY_SILENT:BOOL=ON \
9899 -DITK_WRAP_PYTHON:BOOL=ON \
99100 -DITK_WRAP_PYTHON_LEGACY:BOOL=OFF \
143144
144145# Install packages and test
145146for PYBIN in " ${PYBINARIES[@]} " ; do
146- ${PYBIN} /pip install numpy
147- ${PYBIN} /pip install itk --no-cache-dir --no-index -f /work/dist
147+ ${PYBIN} /pip install --user numpy
148+ ${PYBIN} /pip install itk --user -- no-cache-dir --no-index -f /work/dist
148149 (cd $HOME && ${PYBIN} /python -c ' from itk import ITKCommon;' )
149150 (cd $HOME && ${PYBIN} /python -c ' import itk; image = itk.Image[itk.UC, 2].New()' )
150151 (cd $HOME && ${PYBIN} /python -c ' import itkConfig; itkConfig.LazyLoading = False; import itk;' )
0 commit comments