diff --git a/make-manylinux b/make-manylinux index 67daadfc..bc5bc222 100755 --- a/make-manylinux +++ b/make-manylinux @@ -13,13 +13,15 @@ export TRAVIS=true # know. The env var works for pip 20. export PIP_NO_PYTHON_VERSION_WARNING=1 export PIP_NO_WARN_SCRIPT_LOCATION=1 +export GREENLET_MAPPED=/greenlet export GREENLET_CHECKOUT=/home/runner/work/greenlet/greenlet -ls -la /greenlet ||: -ls -la $(dirname "$GREENLET_CHECKOUT") ||: +ls -la $GREENLET_MAPPED ||: ls -la $GREENLET_CHECKOUT ||: -if [ -d $GREENLET_CHECKOUT -a -d /opt/python ]; then +if [ -d $GREENLET_MAPPED -a -d /opt/python ]; then + echo "Running inside docker" + # Running inside docker export GREENLET_MANYLINUX=1 # Build for speed (we're going to test this anyway) and without assertions. @@ -30,10 +32,11 @@ if [ -d $GREENLET_CHECKOUT -a -d /opt/python ]; then # Build in an isolated directory mkdir /tmp/build cd /tmp/build - git clone $GREENLET_CHECKOUT greenlet + git config --global --add safe.directory $GREENLET_MAPPED/.git + git clone $GREENLET_MAPPED greenlet cd greenlet - mkdir -p $GREENLET_CHECKOUT/wheelhouse + mkdir -p $GREENLET_MAPPED/wheelhouse OPATH="$PATH" which auditwheel for variant in `ls -d /opt/python/cp{37,38,39,310,311,312}*`; do @@ -46,7 +49,7 @@ if [ -d $GREENLET_CHECKOUT -a -d /opt/python ]; then python -mpip install -U .[test] python -m unittest discover -v greenlet.tests PATH="$OPATH" auditwheel repair dist/greenlet*.whl - cp wheelhouse/greenlet*.whl $GREENLET_CHECKOUT/wheelhouse + cp wheelhouse/greenlet*.whl $GREENLET_MAPPED/wheelhouse rm -rf build rm -f dist/greenlet*.whl @@ -58,5 +61,5 @@ fi # Mount the current directory as /greenlet # Can't use -i on Travis with arm64, "input device not a tty" -docker run --rm -v "$(pwd):/greenlet" ${DOCKER_IMAGE:-quay.io/pypa/manylinux2014_x86_64} $GREENLET_CHECKOUT/$(basename $0) +docker run --rm -v "$(pwd):$GREENLET_MAPPED" ${DOCKER_IMAGE:-quay.io/pypa/manylinux2014_x86_64} "$GREENLET_MAPPED/$(basename $0)" ls -l wheelhouse