1
0
Fork 0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-05-27 13:06:21 +02:00

Merge pull request #452 from bwoodsend/simplify-manylinux

Remove explicit handling of manylinux platform tag
This commit is contained in:
Hugo van Kemenade 2021-02-24 21:39:47 +02:00 committed by GitHub
commit 27b82c8f4d
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -70,8 +70,8 @@ jobs:
- name: Build x86 Linux wheels
if: matrix.wheel == 'x86'
run: |
docker run -e PLAT=manylinux1_x86_64 -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
docker run -e PLAT=manylinux1_i686 -v `pwd`:/io quay.io/pypa/manylinux1_i686 /io/scripts/build-manylinux-wheels.sh
docker run -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
docker run -v `pwd`:/io quay.io/pypa/manylinux1_i686 /io/scripts/build-manylinux-wheels.sh
- name: Upload as build artifacts
uses: actions/upload-artifact@v2

View File

@ -1,6 +1,5 @@
FROM quay.io/pypa/manylinux2014_aarch64 as build
ENV PLAT=manylinux2014_aarch64
RUN mkdir -p /io/
COPY . /io/
WORKDIR /io/

View File

@ -4,10 +4,7 @@ set -e -x
# This is to be run by Docker inside a Docker image.
# You can test it locally on a Linux machine by installing Docker and running from this
# repo's root:
# $ docker run -e PLAT=manylinux1_x86_64 -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
# The -e just defines an environment variable PLAT=[docker name] inside the Docker:
# auditwheel can't detect the Docker name automatically.
# $ docker run -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /io/scripts/build-manylinux-wheels.sh
# The -v gives a directory alias for passing files in and out of the Docker.
# (/io is arbitrary). E.g the setup.py script can be accessed in the Docker via
@ -39,5 +36,5 @@ done
mkdir -p /io/dist/
for whl in /io/temp-wheels/*.whl; do
auditwheel repair "$whl" --plat $PLAT -w /io/dist/
auditwheel repair "$whl" -w /io/dist/
done