summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-10-16 01:04:07 (GMT)
committerBarry Warsaw <barry@python.org>2010-10-16 01:04:07 (GMT)
commit8cf4eae522592549a92b7b599838f63ba56120cd (patch)
tree76c8a9608c4efa297a67938429970361e3655d1f /Lib/distutils/command
parentd8d835bd1daa2d097c0d9a9ad1826d2bc111e19e (diff)
downloadcpython-8cf4eae522592549a92b7b599838f63ba56120cd.zip
cpython-8cf4eae522592549a92b7b599838f63ba56120cd.tar.gz
cpython-8cf4eae522592549a92b7b599838f63ba56120cd.tar.bz2
First (uncontroversial) part of issue 9807.
* Expose the build flags to Python as sys.abiflags * Shared library libpythonX.Y<abiflags>.so * python-config --abiflags * Make two distutils tests that failed with --enable-shared (even before this patch) succeed. * Fix a few small style issues.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_ext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 4e66464..cc0d414 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -754,9 +754,9 @@ class build_ext(Command):
else:
from distutils import sysconfig
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