diff options
author | Tarek Ziade <tarek@ziade.org> | 2011-05-22 19:21:44 (GMT) |
---|---|---|
committer | Tarek Ziade <tarek@ziade.org> | 2011-05-22 19:21:44 (GMT) |
commit | 2bc55e482e25587822816c3ccfc30bf66fd3f1a3 (patch) | |
tree | a0a75e635f82f97d9ed5a463f5989c873ed679f6 /Lib/packaging/command/build_ext.py | |
parent | 1e045b183104df770e232e756986bf301c87e9ce (diff) | |
download | cpython-2bc55e482e25587822816c3ccfc30bf66fd3f1a3.zip cpython-2bc55e482e25587822816c3ccfc30bf66fd3f1a3.tar.gz cpython-2bc55e482e25587822816c3ccfc30bf66fd3f1a3.tar.bz2 |
Issue 10126 - backported distutils fix for the enable-share mode into packaging
Diffstat (limited to 'Lib/packaging/command/build_ext.py')
-rw-r--r-- | Lib/packaging/command/build_ext.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/packaging/command/build_ext.py b/Lib/packaging/command/build_ext.py index 7803d01..403e5fd 100644 --- a/Lib/packaging/command/build_ext.py +++ b/Lib/packaging/command/build_ext.py @@ -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 |