Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Jun 5, 2024
1 parent aa8c9af commit 5122424
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions make-manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 5122424

Please sign in to comment.