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

$LIBPL value.
This commit is contained in:
Barry Warsaw 2012-07-26 18:12:07 -04:00
parent 3bbd2fad4d
commit 9eeea48cc9
2 changed files with 7 additions and 1 deletions

View File

@ -184,6 +184,9 @@ Extension Modules
Tools/Demos
-----------
- Issue #15458: python-config gets a new option --configdir to print the
$LIBPL value.
- Move importlib.test.benchmark to Tools/importbench.
- Issue #12605: The gdb hooks for debugging CPython (within Tools/gdb) have

View File

@ -7,7 +7,7 @@ import sys
import sysconfig
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):
print("Usage: {0} [{1}]".format(
@ -61,3 +61,6 @@ for opt in opt_flags:
elif opt == '--abiflags':
print(sys.abiflags)
elif opt == '--configdir':
print(sysconfig.get_config_var('LIBPL'))