9806: add --extension-suffix option to python-config.
This commit is contained in:
parent
d4ac96a336
commit
b084b48cec
|
@ -137,6 +137,10 @@ Tools/Demos
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #9806: python-config now has an ``--extension-suffix`` option that
|
||||||
|
outputs the suffix for dynamic libraries including the ABI version name
|
||||||
|
defined by PEP 3149.
|
||||||
|
|
||||||
- Issue #941346: Improve the build process under AIX and allow Python to
|
- Issue #941346: Improve the build process under AIX and allow Python to
|
||||||
be built as a shared library. Patch by Sébastien Sablé.
|
be built as a shared library. Patch by Sébastien Sablé.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import sys
|
||||||
import sysconfig
|
import sysconfig
|
||||||
|
|
||||||
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
||||||
'ldflags', 'help']
|
'ldflags', 'extension-suffix', 'help']
|
||||||
|
|
||||||
def exit_with_usage(code=1):
|
def exit_with_usage(code=1):
|
||||||
print("Usage: {0} [{1}]".format(
|
print("Usage: {0} [{1}]".format(
|
||||||
|
@ -54,3 +54,5 @@ for opt in opt_flags:
|
||||||
libs.extend(getvar('LINKFORSHARED').split())
|
libs.extend(getvar('LINKFORSHARED').split())
|
||||||
print(' '.join(libs))
|
print(' '.join(libs))
|
||||||
|
|
||||||
|
elif opt == '--extension-suffix':
|
||||||
|
print(sysconfig.get_config_var('SO'))
|
||||||
|
|
Loading…
Reference in New Issue