Skip to content

Commit

Permalink
build: Update to manylinux2014 in build scripts and setup.py (BYVoi…
Browse files Browse the repository at this point in the history
…d#874) (BYVoid#875)

* build: Update to `manylinux2014` in build scripts and setup.py (BYVoid#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.

* build: Dynamically assign manylinux platform name based on machine architecture
  • Loading branch information
ferstar authored and jiahansu committed Aug 21, 2024
1 parent 18f0baa commit ff2b0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release-pypi-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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_$(uname --machine)"

# Cleanup
conda deactivate
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '
Expand Down

0 comments on commit ff2b0ac

Please sign in to comment.