Commit 6b9a727e authored by Barry Warsaw's avatar Barry Warsaw

- Issue #15458: python-config gets a new option --configdir to print the

  $LIBPL value.
parent f2ca0dc5
...@@ -184,6 +184,9 @@ Extension Modules ...@@ -184,6 +184,9 @@ Extension Modules
Tools/Demos Tools/Demos
----------- -----------
- Issue #15458: python-config gets a new option --configdir to print the
$LIBPL value.
- Move importlib.test.benchmark to Tools/importbench. - Move importlib.test.benchmark to Tools/importbench.
- Issue #12605: The gdb hooks for debugging CPython (within Tools/gdb) have - Issue #12605: The gdb hooks for debugging CPython (within Tools/gdb) have
......
...@@ -7,7 +7,7 @@ import sys ...@@ -7,7 +7,7 @@ import sys
import sysconfig import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'extension-suffix', 'help', 'abiflags'] 'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']
def exit_with_usage(code=1): def exit_with_usage(code=1):
print("Usage: {0} [{1}]".format( print("Usage: {0} [{1}]".format(
...@@ -61,3 +61,6 @@ for opt in opt_flags: ...@@ -61,3 +61,6 @@ for opt in opt_flags:
elif opt == '--abiflags': elif opt == '--abiflags':
print(sys.abiflags) print(sys.abiflags)
elif opt == '--configdir':
print(sysconfig.get_config_var('LIBPL'))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment