makepanda: Fix python DLL not being copied into wheel on 3.13t
This commit is contained in:
parent
27ce5c991e
commit
e2d9d3ef7c
|
|
@ -635,11 +635,16 @@ def makewheel(version, output_dir, platform=None):
|
|||
whl.ignore_deps.update(MANYLINUX_LIBS)
|
||||
|
||||
# Add libpython for deployment.
|
||||
suffix = ''
|
||||
gil_disabled = get_config_var("Py_GIL_DISABLED")
|
||||
if gil_disabled and int(gil_disabled):
|
||||
suffix = 't'
|
||||
|
||||
if sys.platform in ('win32', 'cygwin'):
|
||||
pylib_name = 'python{0}{1}.dll'.format(*sys.version_info)
|
||||
pylib_name = 'python{0}{1}{2}.dll'.format(sys.version_info[0], sys.version_info[1], suffix)
|
||||
pylib_path = os.path.join(get_config_var('BINDIR'), pylib_name)
|
||||
elif sys.platform == 'darwin':
|
||||
pylib_name = 'libpython{0}.{1}.dylib'.format(*sys.version_info)
|
||||
pylib_name = 'libpython{0}.{1}{2}.dylib'.format(sys.version_info[0], sys.version_info[1], suffix)
|
||||
pylib_path = os.path.join(get_config_var('LIBDIR'), pylib_name)
|
||||
else:
|
||||
pylib_name = get_config_var('LDLIBRARY')
|
||||
|
|
|
|||
Loading…
Reference in New Issue