Skip to content

Commit

Permalink
scripts: Updates from ITKPythonPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Aug 16, 2018
1 parent b30ce84 commit 8fcd081
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 7 additions & 1 deletion scripts/internal/manylinux-build-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ set -e -x
# For example,
# manylinux-build-wheels.sh cp27mu cp35
if [[ $# -eq 0 ]]; then
PYBINARIES=(/opt/python/*/bin)
PYBIN=(/opt/python/*/bin)
PYBINARIES=()
for version in "${PYBIN[@]}"; do
if [[ ${version} == *"cp27"* || ${version} == *"cp35"* || ${version} == *"cp36"* ]]; then
PYBINARIES+=(${version})
fi
done
else
PYBINARIES=()
for version in "$@"; do
Expand Down
13 changes: 3 additions & 10 deletions scripts/internal/manylinux-build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ popd > /dev/null 2>&1

# Compile wheels re-using standalone project and archive cache
for PYBIN in "${PYBINARIES[@]}"; do
if [[ ${PYBIN} == *"cp26"* || ${PYBIN} == *"cp33"* ]]; then
echo "Skipping ${PYBIN}"
continue
fi

PYTHON_EXECUTABLE=${PYBIN}/python
export PYTHON_EXECUTABLE=${PYBIN}/python
PYTHON_INCLUDE_DIR=$( find -L ${PYBIN}/../include/ -name Python.h -exec dirname {} \; )

echo ""
Expand Down Expand Up @@ -61,6 +56,8 @@ for PYBIN in "${PYBINARIES[@]}"; do
# Cleanup
${PYBIN}/python setup.py clean

# Remove unnecessary files for building against VTK
find ${build_path} -name '*.o' -delete
done

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

# Install packages and test
for PYBIN in "${PYBINARIES[@]}"; do
if [[ ${PYBIN} == *"cp26"* || ${PYBIN} == *"cp33"* ]]; then
echo "Skipping ${PYBIN}"
continue
fi
#${PYBIN}/pip install numpy
${PYBIN}/pip install vtk --no-cache-dir --no-index -f /work/dist
#(cd $HOME && ${PYBIN}/python -c 'from itk import ITKCommon;')
Expand Down

0 comments on commit 8fcd081

Please sign in to comment.