8000 9806: add --extension-suffix option to python-config. · python/cpython@b084b48 · GitHub
[go: up one dir, main page]

Skip to content

Commit b084b48

Browse files
committed
9806: add --extension-suffix option to python-config.
1 parent d4ac96a commit b084b48

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ Tools/Demos
137137
Build
138138
-----
139139

140+
- Issue #9806: python-config now has an ``--extension-suffix`` option that
141+
outputs the suffix for dynamic libraries including the ABI version name
142+
defined by PEP 3149.
143+
140144
- Issue #941346: Improve the build process under AIX and allow Python to
141145
be built as a shared library. Patch by Sébastien Sablé.
142146

Misc/python-config.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import sys
66
import sysconfig
77

88
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
9-
'ldflags', 'help']
9+
'ldflags', 'extension-suffix', 'help']
1010

1111
def exit_with_usage(code=1):
1212
print("Usage: {0} [{1}]".format(
@@ -54,3 +54,5 @@ for opt in opt_flags:
5454
libs.extend(getvar('LINKFORSHARED').split())
5555
print(' '.join(libs))
5656

57+
elif opt == '--extension-suffix':
58+
print(sysconfig.get_config_var('SO'))

0 commit comments

Comments
 (0)
0