File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ set -e -x
77# For example,
88# manylinux-build-wheels.sh cp27mu cp35
99if [[ $# -eq 0 ]]; then
10- PYBINARIES=(/opt/python/* /bin)
10+ PYBIN=(/opt/python/* /bin)
11+ PYBINARIES=()
12+ for version in " ${PYBIN[@]} " ; do
13+ if [[ ${version} == * " cp27" * || ${version} == * " cp35" * || ${version} == * " cp36" * ]]; then
14+ PYBINARIES+=(${version} )
15+ fi
16+ done
1117else
1218 PYBINARIES=()
1319 for version in " $@ " ; do
Original file line number Diff line number Diff line change @@ -23,12 +23,7 @@ popd > /dev/null 2>&1
2323
2424# Compile wheels re-using standalone project and archive cache
2525for PYBIN in " ${PYBINARIES[@]} " ; do
26- if [[ ${PYBIN} == * " cp26" * || ${PYBIN} == * " cp33" * ]]; then
27- echo " Skipping ${PYBIN} "
28- continue
29- fi
30-
31- PYTHON_EXECUTABLE=${PYBIN} /python
26+ export PYTHON_EXECUTABLE=${PYBIN} /python
3227 PYTHON_INCLUDE_DIR=$( find -L ${PYBIN} /../include/ -name Python.h -exec dirname {} \; )
3328
3429 echo " "
@@ -61,6 +56,8 @@ for PYBIN in "${PYBINARIES[@]}"; do
6156 # Cleanup
6257 ${PYBIN} /python setup.py clean
6358
59+ # Remove unnecessary files for building against VTK
60+ find ${build_path} -name ' *.o' -delete
6461done
6562
6663# Fixup the wheels (update from 'linux' to 'manylinux1' tag)
7269
7370# Install packages and test
7471for PYBIN in " ${PYBINARIES[@]} " ; do
75- if [[ ${PYBIN} == * " cp26" * || ${PYBIN} == * " cp33" * ]]; then
76- echo " Skipping ${PYBIN} "
77- continue
78- fi
7972 # ${PYBIN}/pip install numpy
8073 ${PYBIN} /pip install vtk --no-cache-dir --no-index -f /work/dist
8174 # (cd $HOME && ${PYBIN}/python -c 'from itk import ITKCommon;')
You can’t perform that action at this time.
0 commit comments