Browse Source

build wheels with manylinux2014 (#80)

* build wheels with manylinux2014

* .

* .
master
Ofek Lev 3 years ago
committed by GitHub
parent
commit
d5181635df
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/scripts/build-linux-wheels.sh
  2. 4
      .github/scripts/build.sh
  3. 2
      .github/workflows/build.yml
  4. 1
      HISTORY.rst

2
.github/scripts/build-linux-wheels.sh

@ -4,7 +4,7 @@ set -e
set -x
# Install system packages required by our library
yum install -y pkg-config libffi libffi-devel
yum install -y pkgconfig libffi libffi-devel
# Use updated GMP
curl -O https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.bz2 && tar -xjpf gmp-*.tar.bz2 && cd gmp* && ./configure --build=${BUILD_GMP_CPU}-pc-linux-gnu > /dev/null && make > /dev/null && make check > /dev/null && make install > /dev/null && cd ..

4
.github/scripts/build.sh

@ -9,8 +9,8 @@ if [[ "$OS_NAME" =~ "ubuntu-" ]]; then
if [[ "$PYTHON_VERSION" =~ "pypy" ]]; then
docker run --rm -e PYTHON_VERSION="$PYTHON_VERSION" -e PLAT="manylinux2010_x86_64" -e BUILD_GMP_CPU="amd64" -v $(pwd):/io pypywheels/manylinux2010-pypy_x86_64 /io/.github/scripts/build-linux-wheels.sh
else
docker run --rm -e PYTHON_VERSION="$PYTHON_VERSION" -e PLAT="manylinux1_x86_64" -e BUILD_GMP_CPU="amd64" -v $(pwd):/io quay.io/pypa/manylinux1_x86_64 /io/.github/scripts/build-linux-wheels.sh
linux32 docker run --rm -e PYTHON_VERSION="$PYTHON_VERSION" -e PLAT="manylinux1_i686" -e BUILD_GMP_CPU="i686" -v $(pwd):/io quay.io/pypa/manylinux1_i686 /io/.github/scripts/build-linux-wheels.sh
docker run --rm -e PYTHON_VERSION="$PYTHON_VERSION" -e PLAT="manylinux2014_x86_64" -e BUILD_GMP_CPU="amd64" -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /io/.github/scripts/build-linux-wheels.sh
linux32 docker run --rm -e PYTHON_VERSION="$PYTHON_VERSION" -e PLAT="manylinux2014_i686" -e BUILD_GMP_CPU="i686" -v $(pwd):/io quay.io/pypa/manylinux2014_i686 /io/.github/scripts/build-linux-wheels.sh
if [[ "$PYTHON_VERSION" == "$PYTHON_VERSION_BUILD_EXTRA" ]]; then
# Build the source distribution

2
.github/workflows/build.yml

@ -71,6 +71,8 @@ jobs:
build:
name: "Build ${{ !startsWith(matrix.python-version, 'pypy') && 'Python ' || '' }}${{ startsWith(matrix.python-version, 'pypy') && 'PyPy' || matrix.python-version }} ${{ startsWith(matrix.os, 'ubuntu-') && 'manylinux' || 'on' }} ${{ startsWith(matrix.os, 'ubuntu-') && 'wheels' || 'macOS' }}"
runs-on: ${{ matrix.os }}
needs:
- test
strategy:
fail-fast: false
matrix:

1
HISTORY.rst

@ -7,6 +7,7 @@ master
^^^^^^
- **Breaking:** Drop support for Python 2
- **Breaking:** Binary wheels for CPython require version 19.3 or later of ``pip`` to install
- Build binary wheels for PyPy3.6 7.3.3 & PyPy3.7 7.3.3
14.0.0

Loading…
Cancel
Save