From 98e8ec3c9cb2e53d863c20cdde03d230de562f21 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Tue, 8 Dec 2020 13:00:47 +0100 Subject: [PATCH] Fix manylinux.sh --- tools/docker/build-manylinux1.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/docker/build-manylinux1.sh b/tools/docker/build-manylinux1.sh index b9615c02f0..897c9f3cc2 100755 --- a/tools/docker/build-manylinux1.sh +++ b/tools/docker/build-manylinux1.sh @@ -184,18 +184,20 @@ do # Hack wheel file to rename it manylinux1 since manylinux2010 is still not # supported by default pip on most distro. - FILE=${EXPORT_ROOT}/ortools-*-${PYTAG}-manylinux2010_x86_64.whl + FILE=$(find "${EXPORT_ROOT}/ortools-*-${PYTAG}-manylinux2010_x86_64.whl" | head -1) echo "Old wheel file to hack: ${FILE}" # Unpack to hack it unzip "$FILE" -d /tmp rm -f "$FILE" - WHEEL_FILE=/tmp/ortools-*.dist-info/WHEEL - RECORD_FILE=/tmp/ortools-*.dist-info/RECORD + WHEEL_FILE=$(find /tmp/ortools-*.dist-info/WHEEL | head -1) + echo "WHEEL file to hack: ${WHEEL_FILE}" + RECORD_FILE=$(find /tmp/ortools-*.dist-info/RECORD | head -1) + echo "RECORD file to hack: ${RECORD_FILE}" # Save old hash and size, in order to look them up in RECORD # see: https://github.com/pypa/pip/blob/c9df690f3b5bb285a855953272e6fe24f69aa08a/src/pip/_internal/wheel.py#L71-L84 - WHEEL_HASH_CMD="/opt/_internal/cpython-3.8.*/bin/python3 -c \ + WHEEL_HASH_CMD="/opt/_internal/cpython-3.9.*/bin/python3 -c \ \"import hashlib;\ import base64;\ print(\