summaryrefslogtreecommitdiffstats
path: root/Misc/python-config.in
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-09-12 17:14:26 (GMT)
committerGeorg Brandl <georg@python.org>2010-09-12 17:14:26 (GMT)
commitb084b48cec806dbc138c4efee338e422aefe538e (patch)
tree301131c4a9a46f7a878d49f114be7896b449e57c /Misc/python-config.in
parentd4ac96a3363b7bb9f587abfd41fda3299391fb7d (diff)
downloadcpython-b084b48cec806dbc138c4efee338e422aefe538e.zip
cpython-b084b48cec806dbc138c4efee338e422aefe538e.tar.gz
cpython-b084b48cec806dbc138c4efee338e422aefe538e.tar.bz2
9806: add --extension-suffix option to python-config.
Diffstat (limited to 'Misc/python-config.in')
-rw-r--r--Misc/python-config.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Misc/python-config.in b/Misc/python-config.in
index 2660574..841cdfa 100644
--- a/Misc/python-config.in
+++ b/Misc/python-config.in
@@ -6,7 +6,7 @@ import sys
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
- 'ldflags', 'help']
+ 'ldflags', 'extension-suffix', 'help']
def exit_with_usage(code=1):
print("Usage: {0} [{1}]".format(
@@ -54,3 +54,5 @@ for opt in opt_flags:
libs.extend(getvar('LINKFORSHARED').split())
print(' '.join(libs))
+ elif opt == '--extension-suffix':
+ print(sysconfig.get_config_var('SO'))