summaryrefslogtreecommitdiff
path: root/tools/manylinux/build-wheels.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/manylinux/build-wheels.sh')
-rwxr-xr-xtools/manylinux/build-wheels.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/manylinux/build-wheels.sh b/tools/manylinux/build-wheels.sh
index 65d76029..3431df47 100755
--- a/tools/manylinux/build-wheels.sh
+++ b/tools/manylinux/build-wheels.sh
@@ -9,6 +9,7 @@ REQUIREMENTS=/io/requirements.txt
SDIST=$1
PACKAGE=$(basename ${SDIST%-*})
SDIST_PREFIX=$(basename ${SDIST%%.tar.gz})
+[ -z "$PYTHON_BUILD_VERSION" ] && PYTHON_BUILD_VERSION="*"
build_wheel() {
pybin="$1"
@@ -16,6 +17,7 @@ build_wheel() {
[ -n "$source" ] || source=/io
env STATIC_DEPS=true \
+ RUN_TESTS=true \
LDFLAGS="$LDFLAGS -fPIC" \
CFLAGS="$CFLAGS -fPIC" \
${pybin}/pip \
@@ -26,7 +28,7 @@ build_wheel() {
run_tests() {
# Install packages and test
- for PYBIN in /opt/python/*/bin/; do
+ for PYBIN in /opt/python/${PYTHON_BUILD_VERSION}/bin/; do
${PYBIN}/python -m pip install $PACKAGE --no-index -f /io/$WHEELHOUSE || exit 1
# check import as a quick test
@@ -47,7 +49,7 @@ build_wheels() {
FIRST=
SECOND=
THIRD=
- for PYBIN in /opt/python/*/bin; do
+ for PYBIN in /opt/python/${PYTHON_BUILD_VERSION}/bin; do
# Install build requirements if we need them and file exists
test -n "$source" -o ! -e "$REQUIREMENTS" \
|| ${PYBIN}/python -m pip install -r "$REQUIREMENTS"