@@ -3,14 +3,14 @@ set -e -x
33
44# This is to be run by Docker inside a Docker image.
55# You can test it locally on a Linux machine by installing docker and running from this repo's root:
6- # $ docker run -e PLAT=manylinux1_x86_64 -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
6+ # $ docker run -e PLAT=manylinux2014_x86_64 -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
77
88# * The -e just defines an environment variable PLAT=[docker name] inside the
99# docker - auditwheel can't detect the docker name automatically.
1010# * The -v gives a directory alias for passing files in and out of the docker
1111# (/io is arbitrary). E.g the `setup.py` script would be accessed in the
1212# docker via `/io/setup.py`.
13- # * quay.io/pypa/manylinux1_x86_64 is the full docker image name. Docker
13+ # * quay.io/pypa/manylinux2014_x86_64 is the full docker image name. Docker
1414# downloads it automatically.
1515# * The last argument is a shell command that the Docker will execute.
1616# Filenames must be from the Docker's perspective.
@@ -24,6 +24,10 @@ mkdir -p /io/temp-wheels
2424# Clean out any old existing wheels.
2525find /io/temp-wheels/ -type f -delete
2626
27+ # /io might be owned by someone else since we are in docker
28+ # this may stop versioneer from using git the way it needs
29+ git config --global --add safe.directory /io
30+
2731# Iterate through available pythons.
2832for PYBIN in /opt/python/cp3{7,8,9,10}* /bin; do
2933 " ${PYBIN} /pip" install -q -U setuptools wheel build --cache-dir /io/pip-cache
0 commit comments