Skip to content

Commit 2d0b427

Browse files
committed
ci: Actually build linux wheels on all release Python versions
1 parent e3f5cc7 commit 2d0b427

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

.ci/travis-build-wheels.sh

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,23 @@ _upload_wheels() {
3737

3838

3939
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
40-
ML_PYTHON_VERSION=$(python3 -c "import sys; \
41-
print('cp{maj}{min}-cp{maj}{min}m'.format( \
42-
maj=sys.version_info.major, min=sys.version_info.minor))")
43-
44-
PYTHON_VERSION=$(python3 -c "import sys; \
45-
print('{maj}.{min}'.format( \
46-
maj=sys.version_info.major, min=sys.version_info.minor))")
47-
48-
if [[ "${RELEASE_PYTHON_VERSIONS}" != *"${PYTHON_VERSION}"* ]]; then
49-
echo "Skipping release on Python ${PYTHON_VERSION}."
50-
exit 0
51-
fi
52-
53-
for arch in x86_64 i686; do
54-
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
55-
docker pull "${ML_IMAGE}"
56-
docker run --rm \
57-
-v "${_root}":/io \
58-
-e "PYMODULE=${PYMODULE}" \
59-
-e "PYTHON_VERSION=${ML_PYTHON_VERSION}" \
60-
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh
61-
62-
_upload_wheels
40+
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
41+
ML_PYTHON_VERSION=$(python3 -c \
42+
"print('cp{maj}{min}-cp{maj}{min}m'.format( \
43+
maj='${pyver}'.split('.')[0], \
44+
min='${pyver}'.split('.')[1]))")
45+
46+
for arch in x86_64 i686; do
47+
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
48+
docker pull "${ML_IMAGE}"
49+
docker run --rm \
50+
-v "${_root}":/io \
51+
-e "PYMODULE=${PYMODULE}" \
52+
-e "PYTHON_VERSION=${ML_PYTHON_VERSION}" \
53+
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh
54+
55+
_upload_wheels
56+
done
6357
done
6458

6559
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then

0 commit comments

Comments
 (0)