Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 65389:932f97bfbdc0
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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Sat, 16 Oct 2010 01:04:07 +0000 |
| parents | 8fd5d06462e6 |
| children | e8969fb822fc |
line wrap: on
line diff
--- a/Python/sysmodule.c Fri Oct 15 23:14:46 2010 +0000 +++ b/Python/sysmodule.c Sat Oct 16 01:04:07 2010 +0000 @@ -1521,6 +1521,10 @@ 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); }
