From 1e51eeb32bfa28fe37415d561af22391f904ffef Mon Sep 17 00:00:00 2001 From: Zhang Jianfei Date: Mon, 15 Jul 2024 10:37:21 +0800 Subject: [PATCH 1/2] build: Update to `manylinux2014` in build scripts and setup.py (#874) Update the platform name from manylinux1 to manylinux2014 in the Linux build scripts and setup.py to comply with the updated Python wheel specification. This change ensures that the built packages are compatible with the newer manylinux2014 standard, which provides better support for newer Linux distributions and wheel formats. --- release-pypi-linux.sh | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/release-pypi-linux.sh b/release-pypi-linux.sh index b0a11bcf5..35a982a89 100644 --- a/release-pypi-linux.sh +++ b/release-pypi-linux.sh @@ -35,7 +35,7 @@ for VERSION in 3.8 3.9 3.10 3.11 3.12; do # Build and package pip install --no-cache-dir setuptools wheel cmake python setup.py build_ext bdist_wheel \ - --plat-name manylinux1_x86_64 + --plat-name manylinux2014_x86_64 # Cleanup conda deactivate diff --git a/setup.py b/setup.py index c6f7bad8e..a7ce160dd 100644 --- a/setup.py +++ b/setup.py @@ -160,7 +160,7 @@ def _determine_platform_tag(): if os.name == 'posix': _, _, _, _, machine = os.uname() - return 'manylinux1-{}'.format(machine) + return 'manylinux2014-{}'.format(machine) warnings.warn( 'Windows macos and linux are all not detected, ' From 65abffce87f33bed935ca7e2b01b002d8519c6a3 Mon Sep 17 00:00:00 2001 From: Zhang Jianfei Date: Mon, 15 Jul 2024 10:52:18 +0800 Subject: [PATCH 2/2] build: Dynamically assign manylinux platform name based on machine architecture --- release-pypi-linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-pypi-linux.sh b/release-pypi-linux.sh index 35a982a89..7f02f7ca5 100644 --- a/release-pypi-linux.sh +++ b/release-pypi-linux.sh @@ -35,7 +35,7 @@ for VERSION in 3.8 3.9 3.10 3.11 3.12; do # Build and package pip install --no-cache-dir setuptools wheel cmake python setup.py build_ext bdist_wheel \ - --plat-name manylinux2014_x86_64 + --plat-name "manylinux2014_$(uname --machine)" # Cleanup conda deactivate