Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 79edb3f

Browse files
partheaohmayr
andauthored
fix: remove manylinux1 which is no longer supported by PyPA (#186)
Co-authored-by: ohmayr <[email protected]>
1 parent 4fea066 commit 79edb3f

4 files changed

Lines changed: 4 additions & 64 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -23,49 +23,6 @@ jobs:
2323
name: python-package-distributions
2424
path: dist/
2525

26-
build-wheels-manylinux1:
27-
# Note: the 'manylinux1' image will no longer be supported by PyPA
28-
# after 2022-01-01.
29-
# See: https://github.com/pypa/manylinux/issues/994
30-
name: Build wheels on ubuntu-20.04 - x86_64 - manylinux1
31-
32-
runs-on: ubuntu-22.04
33-
34-
steps:
35-
- uses: actions/checkout@v4
36-
with:
37-
submodules: 'recursive'
38-
39-
- name: Build Wheels
40-
uses: pypa/[email protected]
41-
env:
42-
CIBW_ARCHS_LINUX: x86_64
43-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
44-
CIBW_BUILD: "cp3[6-9]-manylinux*" # manylinux1 has no support for 3.10+ Python or PyPy
45-
CIBW_ENVIRONMENT: >
46-
CRC32C_PURE_PYTHON="0"
47-
CRC32C_INSTALL_PREFIX="$(pwd)/usr"
48-
CIBW_BUILD_VERBOSITY: 1
49-
# Build the C library inside CIBW so that the manylinux image is
50-
# used to link the share library; otherwise, our extension wouldn't
51-
# be able to link with it.
52-
CIBW_BEFORE_BUILD: >
53-
python -m pip install --only-binary --require-hashes -r scripts/requirements.txt &&
54-
cmake -S google_crc32c -B build \
55-
-DCMAKE_BUILD_TYPE=Release \
56-
-DCRC32C_BUILD_TESTS=no \
57-
-DCRC32C_BUILD_BENCHMARKS=no \
58-
-DBUILD_SHARED_LIBS=yes \
59-
-DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/usr &&
60-
make -C build all install
61-
CIBW_TEST_REQUIRES: pytest
62-
CIBW_TEST_COMMAND: py.test -v {project}/tests/
63-
64-
- uses: actions/upload-artifact@v3
65-
with:
66-
name: python-package-distributions
67-
path: wheelhouse/
68-
6926
build-wheels-linux:
7027
name: Build wheels on ${{ matrix.os }} - ${{ matrix.arch }}
7128

@@ -258,7 +215,6 @@ jobs:
258215
if: github.event_name == 'release'
259216
needs:
260217
- build-source-distribution
261-
- build-wheels-manylinux1
262218
- build-wheels-linux
263219
- build-wheels-macos
264220
- build-wheels-windows

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ Wheels are published for the following platforms / architectures:
2121
- `manylinux2010` platform, `x86_64` and `1686` architectures
2222
- `manylinux2014` platform, `aarch64` architecture
2323

24-
### Deprecated
25-
26-
- `manylinux1` platform, `x86_64` architecture wheels will be built until
27-
2021-12-31, when the PyPA group drops support for the `manylinux1` image.
28-
See: https://github.com/pypa/manylinux/issues/994
24+
### Unsupported Platforms
2925

26+
- `manylinux1` platform, `x86_64` architecture support has ended.
27+
See https://github.com/pypa/manylinux/issues/994.
3028

3129
## Mac OS
3230

scripts/manylinux/build.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,6 @@ REPO_ROOT=$(dirname ${SCRIPTS_DIR})
2525
cd $REPO_ROOT
2626
git submodule update --init --recursive
2727

28-
# Note: PyPA's support for the 'manylinux1' image ends on 2022-01-01.
29-
# See: https://github.com/pypa/manylinux/issues/994
30-
# No 3.1* support for 'manylinux1'.
31-
if [[ "${BUILD_PYTHON}" != "3.1"* ]]; then
32-
docker pull quay.io/pypa/manylinux1_x86_64
33-
docker run \
34-
--rm \
35-
--interactive \
36-
--volume ${REPO_ROOT}:/var/code/python-crc32c/ \
37-
--env BUILD_PYTHON=${BUILD_PYTHON} \
38-
quay.io/pypa/manylinux1_x86_64 \
39-
/var/code/python-crc32c/scripts/manylinux/build_on_centos.sh
40-
fi
41-
4228
docker pull quay.io/pypa/manylinux2010_x86_64
4329
docker run \
4430
--rm \

scripts/manylinux/check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo "CHECKING ON LINUX"
2020

2121
VERSION=$(awk "/version \= ([0-9.]+)/" setup.cfg)
2222
PACKAGE_VERSION=${VERSION:10}
23-
WHEEL_FILE="wheels/google_crc32c-${PACKAGE_VERSION}-cp36-cp36m-manylinux1_x86_64.whl"
23+
WHEEL_FILE="wheels/google_crc32c-${PACKAGE_VERSION}-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
2424
PYTHON=python3.7
2525

2626
# Using pyenv, set 3.7.13 as a local python version.

0 commit comments

Comments
 (0)