Mercurial > cpython-lru_cache-weakref
diff Misc/python-config.in @ 78291:ddf15cd9be4a
- Issue #15458: python-config gets a new option --configdir to print the
$LIBPL value.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 26 Jul 2012 18:12:07 -0400 |
| parents | 2d4f290ea71c |
| children | 14f0c9e595a5 |
line wrap: on
line diff
--- a/Misc/python-config.in Thu Jul 26 22:23:23 2012 +0200 +++ b/Misc/python-config.in Thu Jul 26 18:12:07 2012 -0400 @@ -7,7 +7,7 @@ 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 @@ elif opt == '--abiflags': print(sys.abiflags) + + elif opt == '--configdir': + print(sysconfig.get_config_var('LIBPL'))
