Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 65385:2b17be62c74f | 65389:932f97bfbdc0 |
|---|---|
| 1519 SET_SYS_FROM_STRING("dllhandle", | 1519 SET_SYS_FROM_STRING("dllhandle", |
| 1520 PyLong_FromVoidPtr(PyWin_DLLhModule)); | 1520 PyLong_FromVoidPtr(PyWin_DLLhModule)); |
| 1521 SET_SYS_FROM_STRING("winver", | 1521 SET_SYS_FROM_STRING("winver", |
| 1522 PyUnicode_FromString(PyWin_DLLVersionString)); | 1522 PyUnicode_FromString(PyWin_DLLVersionString)); |
| 1523 #endif | 1523 #endif |
| 1524 #ifdef ABIFLAGS | |
| 1525 SET_SYS_FROM_STRING("abiflags", | |
| 1526 PyUnicode_FromString(ABIFLAGS)); | |
| 1527 #endif | |
| 1524 if (warnoptions == NULL) { | 1528 if (warnoptions == NULL) { |
| 1525 warnoptions = PyList_New(0); | 1529 warnoptions = PyList_New(0); |
| 1526 } | 1530 } |
| 1527 else { | 1531 else { |
| 1528 Py_INCREF(warnoptions); | 1532 Py_INCREF(warnoptions); |
