summaryrefslogtreecommitdiffstats
path: root/Misc/python-config.in
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2012-07-26 22:12:07 (GMT)
committerBarry Warsaw <barry@python.org>2012-07-26 22:12:07 (GMT)
commit9eeea48cc91b2f7c6d9ac5420a3c84c0abb34e25 (patch)
treea37cea5b4a43381741476cffde646253263b4b31 /Misc/python-config.in
parent3bbd2fad4d4a282c7a5a3169a4f497b97aeff319 (diff)
downloadcpython-9eeea48cc91b2f7c6d9ac5420a3c84c0abb34e25.zip
cpython-9eeea48cc91b2f7c6d9ac5420a3c84c0abb34e25.tar.gz
cpython-9eeea48cc91b2f7c6d9ac5420a3c84c0abb34e25.tar.bz2
- Issue #15458: python-config gets a new option --configdir to print the
$LIBPL value.
Diffstat (limited to 'Misc/python-config.in')
-rw-r--r--Misc/python-config.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Misc/python-config.in b/Misc/python-config.in
index 79f0bb1..bb0b008 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'))