From 9eeea48cc91b2f7c6d9ac5420a3c84c0abb34e25 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 26 Jul 2012 18:12:07 -0400 Subject: [PATCH] - Issue #15458: python-config gets a new option --configdir to print the $LIBPL value. --- Misc/NEWS | 3 +++ Misc/python-config.in | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index 508ec1bd5f..8f48d0bb37 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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 diff --git a/Misc/python-config.in b/Misc/python-config.in index 79f0bb14c1..bb0b008f7b 100644 --- a/Misc/python-config.in +++ b/Misc/python-config.in @@ -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')) -- 2.40.0