summaryrefslogtreecommitdiffstats
path: root/Python
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 /Python
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 'Python')
-rw-r--r--Python/sysmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d02ee5b..6c563f0 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1521,6 +1521,10 @@ _PySys_Init(void)
SET_SYS_FROM_STRING("winver",
PyUnicode_FromString(PyWin_DLLVersionString));
#endif
+#ifdef ABIFLAGS
+ SET_SYS_FROM_STRING("abiflags",
+ PyUnicode_FromString(ABIFLAGS));
+#endif
if (warnoptions == NULL) {
warnoptions = PyList_New(0);
}