Add manylinux_2_24 for building

This commit is contained in:
Stephen A. Imhoff 2021-12-30 21:59:08 +00:00
parent f01399bba8
commit a723567a3a
2 changed files with 9 additions and 0 deletions

View File

@ -497,6 +497,13 @@ elif target == 'linux' and (os.path.isfile("/lib/libc-2.17.so") or os.path.isfil
else:
PLATFORM = 'manylinux2014-i686'
elif target == 'linux' and (os.path.isfile("/lib/i386-linux-gnu/libc-2.24.so") or os.path.isfile("/lib/x86_64/libc-2.24.so")) and os.path.isdir("/opt/python"):
# Same sloppy check for manylinux_2_24.
if GetTargetArch() in ('x86_64', 'amd64'):
PLATFORM = 'manylinux_2_24-x86_64'
else:
PLATFORM = 'manylinux_2_24-i686'
elif not CrossCompiling():
if HasTargetArch():
# Replace the architecture in the platform string.

View File

@ -558,6 +558,8 @@ def makewheel(version, output_dir, platform=None):
platform = platform.replace("linux", "manylinux2010")
elif os.path.isfile("/lib/libc-2.17.so") or os.path.isfile("/lib64/libc-2.17.so"):
platform = platform.replace("linux", "manylinux2014")
elif os.path.isfile("/lib/i386-linux-gnu/libc-2.24.so") or os.path.isfile("/lib/x86_64/libc-2.24.so"):
platform = platform.replace("linux", "manylinux_2_24")
platform = platform.replace('-', '_').replace('.', '_')