Skip to content

Commit 8fcd081

Browse files
committed
scripts: Updates from ITKPythonPackage
1 parent b30ce84 commit 8fcd081

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ set -e -x
77
# For example,
88
# manylinux-build-wheels.sh cp27mu cp35
99
if [[ $# -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
1117
else
1218
PYBINARIES=()
1319
for version in "$@"; do

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ popd > /dev/null 2>&1
2323

2424
# Compile wheels re-using standalone project and archive cache
2525
for 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
6461
done
6562

6663
# Fixup the wheels (update from 'linux' to 'manylinux1' tag)
@@ -72,10 +69,6 @@ done
7269

7370
# Install packages and test
7471
for 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;')

0 commit comments

Comments
 (0)