From a723567a3a4a32a1f7167bcb049aeea5b69ab7cf Mon Sep 17 00:00:00 2001 From: "Stephen A. Imhoff" Date: Thu, 30 Dec 2021 21:59:08 +0000 Subject: [PATCH] Add manylinux_2_24 for building --- makepanda/makepanda.py | 7 +++++++ makepanda/makewheel.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 9e8186fd78..018b57029b 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -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. diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index 771a9eb41a..124c44a713 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -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('.', '_')