mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
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.
This commit is contained in:
parent
d8d835bd1d
commit
8cf4eae522
9 changed files with 386 additions and 299 deletions
|
|
@ -6,7 +6,7 @@ import sys
|
|||
import sysconfig
|
||||
|
||||
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
||||
'ldflags', 'extension-suffix', 'help']
|
||||
'ldflags', 'extension-suffix', 'help', 'abiflags']
|
||||
|
||||
def exit_with_usage(code=1):
|
||||
print("Usage: {0} [{1}]".format(
|
||||
|
|
@ -56,3 +56,6 @@ for opt in opt_flags:
|
|||
|
||||
elif opt == '--extension-suffix':
|
||||
print(sysconfig.get_config_var('SO'))
|
||||
|
||||
elif opt == '--abiflags':
|
||||
print(sys.abiflags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue