summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-10-16 01:04:07 +0000
committerBarry Warsaw <barry@python.org>2010-10-16 01:04:07 +0000
commit0744ba041925372096a9b79325943fc746782d81 (patch)
tree16b0074569399f5a4005df255c13994e3e2024cb /Python/sysmodule.c
parent2e1efcdb343ba22a9f7699b6f25962a5e56f2395 (diff)
downloadcpython-0744ba041925372096a9b79325943fc746782d81.tar.gz
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/sysmodule.c')
-rw-r--r--Python/sysmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d02ee5b5c0..6c563f0d37 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);
}