From 3ecf501f4c6f1c47d77593214cefa0b39506513e Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 20 Sep 2021 14:21:16 +0200 Subject: [PATCH] tools/docker: Fix manylinux script --- tools/docker/python/build-manylinux.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/docker/python/build-manylinux.sh b/tools/docker/python/build-manylinux.sh index 6bf04b9246..35e0cddffd 100755 --- a/tools/docker/python/build-manylinux.sh +++ b/tools/docker/python/build-manylinux.sh @@ -113,14 +113,15 @@ function test_wheel() { local -r WHEEL_FILE=$(find "${BUILD_DIR}"/python/dist/*.whl | head -1) echo "WHEEL file: ${WHEEL_FILE}" pip install --no-cache-dir "$WHEEL_FILE" - pip show pythonnative + pip show ortools # Run all the specified test scripts using the current environment. + ROOT_DIR=$(pwd) pushd "$(mktemp -d)" # ensure we are not importing something from $PWD python --version for TEST in "${TESTS[@]}" do - python "$TEST" + python "${ROOT_DIR}/${TEST}" done popd