Skip to content

Commit 9eeea48

Browse files
committed
- Issue python#15458: python-config gets a new option --configdir to print the
$LIBPL value.
1 parent 3bbd2fa commit 9eeea48

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ Extension Modules
184184
Tools/Demos
185185
-----------
186186

187+
- Issue #15458: python-config gets a new option --configdir to print the
188+
$LIBPL value.
189+
187190
- Move importlib.test.benchmark to Tools/importbench.
188191

189192
- Issue #12605: The gdb hooks for debugging CPython (within Tools/gdb) have

Misc/python-config.in

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

99
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
10-
'ldflags', 'extension-suffix', 'help', 'abiflags']
10+
'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']
1111

1212
def exit_with_usage(code=1):
1313
print("Usage: {0} [{1}]".format(
@@ -61,3 +61,6 @@ for opt in opt_flags:
6161

6262
elif opt == '--abiflags':
6363
print(sys.abiflags)
64+
65+
elif opt == '--configdir':
66+
print(sysconfig.get_config_var('LIBPL'))

0 commit comments

Comments
 (0)