Skip to content

Commit a40c3f8

Browse files
committed
Fix manylinux for 3.8
1 parent 2b52677 commit a40c3f8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.ci/travis-build-wheels.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ _upload_wheels() {
3838
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
3939
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
4040
ML_PYTHON_VERSION=$(python3 -c \
41-
"print('cp{maj}{min}-cp{maj}{min}m'.format( \
41+
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
4242
maj='${pyver}'.split('.')[0], \
43-
min='${pyver}'.split('.')[1]))")
43+
min='${pyver}'.split('.')[1], \
44+
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') \
45+
else ''))")
4446

4547
for arch in x86_64 i686; do
4648
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"

.ci/travis-release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ P="${PYMODULE}-${PACKAGE_VERSION}"
3030
expected_wheels=()
3131

3232
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
33-
pyver="${pyver//./}"
34-
abitag="cp${pyver}-cp${pyver}m"
33+
abitag=$(python -c \
34+
"print('cp{maj}{min}-cp{maj}{min}{s}'.format( \
35+
maj='${pyver}'.split('.')[0], \
36+
min='${pyver}'.split('.')[1],
37+
s='m' if tuple('${pyver}'.split('.')) < ('3', '8') else ''))")
3538
for plat in "${release_platforms[@]}"; do
3639
expected_wheels+=("${P}-${abitag}-${plat}.whl")
3740
done

0 commit comments

Comments
 (0)