Issue 10126 - backported distutils fix for the enable-share mode into packaging

This commit is contained in:
Tarek Ziade 2011-05-22 21:21:44 +02:00
parent 1e045b1831
commit 2bc55e482e
3 changed files with 30 additions and 7 deletions

View file

@ -658,9 +658,9 @@ class build_ext(Command):
else:
if sysconfig.get_config_var('Py_ENABLE_SHARED'):
template = "python%d.%d"
pythonlib = (template %
(sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
pythonlib = 'python{}.{}{}'.format(
sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff,
sys.abiflags)
return ext.libraries + [pythonlib]
else:
return ext.libraries