]> granicus.if.org Git - python/commitdiff
- Issue #15458: python-config gets a new option --configdir to print the
authorBarry Warsaw <barry@python.org>
Thu, 26 Jul 2012 22:12:07 +0000 (18:12 -0400)
committerBarry Warsaw <barry@python.org>
Thu, 26 Jul 2012 22:12:07 +0000 (18:12 -0400)
  $LIBPL value.

Misc/NEWS
Misc/python-config.in

index 508ec1bd5f523aa834df3d497207efe454e90b6d..8f48d0bb376f5b77b1d0420504d9984a65f20ae3 100644 (file)
--- 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
index 79f0bb14c1d9cff0ad1a06abaa8debc470bb8e6a..bb0b008f7bb432a0112b7adcf15ba411259858a7 100644 (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'))