makepanda: Fixes for wheel naming in 3.13t build

[skip ci]
This commit is contained in:
rdb 2024-10-29 17:03:43 +01:00
parent fd7da1908f
commit e9e9fb3584
3 changed files with 3 additions and 9 deletions

View File

@ -795,7 +795,7 @@ def MakeInstallerFreeBSD(version, python_versions=[], **kwargs):
oscmd("rm -f %s/tmp/python_dep" % outputdir)
if "PYTHONVERSION" in SDK:
pyver_nodot = SDK["PYTHONVERSION"][6:].rstrip('dmu').replace('.', '')
pyver_nodot = SDK["PYTHONVERSION"][6:].rstrip('dmut').replace('.', '')
else:
pyver_nodot = "%d%d" % (sys.version_info[:2])

View File

@ -3505,7 +3505,7 @@ def GetCurrentPythonVersionInfo():
return
return {
"version": SDK["PYTHONVERSION"][6:].rstrip('dmu'),
"version": SDK["PYTHONVERSION"][6:].rstrip('dmut'),
"soabi": GetPythonABI(),
"ext_suffix": GetExtensionSuffix(),
"executable": sys.executable,

View File

@ -19,13 +19,7 @@ from sysconfig import get_platform
def get_abi_tag():
soabi = get_config_var('SOABI')
if soabi and soabi.startswith('cpython-'):
return 'cp' + soabi.split('-')[1]
elif soabi:
return soabi.replace('.', '_').replace('-', '_')
return 'cp%d%d' % (sys.version_info[:2])
return ('cp%d%d' % sys.version_info[:2]) + getattr(sys, 'abiflags', '')
def is_exe_file(path):