diff options
author | Georg Brandl <georg@python.org> | 2006-07-24 13:28:57 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-07-24 13:28:57 (GMT) |
commit | ced52a97b66b564a69cb35edea1502d84d8d9d19 (patch) | |
tree | 3c74ca834e6af5d3c70ee4c46f2a56760a4a4a75 /Misc | |
parent | 982e9fea0a9c6026b4d176ce136676ab1893e4b2 (diff) | |
download | cpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.zip cpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.tar.gz cpython-ced52a97b66b564a69cb35edea1502d84d8d9d19.tar.bz2 |
Patch #1523356: fix determining include dirs in python-config.
Also don't install "python-config" when doing altinstall, but
always install "python-config2.x" and make a link to it like
with the main executable.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python-config.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/python-config.in b/Misc/python-config.in index 24e699e..e0215a2 100644 --- a/Misc/python-config.in +++ b/Misc/python-config.in @@ -1,4 +1,4 @@ -#!@BINDIR@/python +#!@EXENAME@ import sys import os @@ -36,13 +36,14 @@ elif opt == '--exec-prefix': print sysconfig.EXEC_PREFIX elif opt in ('--includes', '--cflags'): - flags = ['-I'+dir for dir in getvar('INCLDIRSTOMAKE').split()] + flags = ['-I' + sysconfig.get_python_inc(), + '-I' + sysconfig.get_python_inc(plat_specific=True)] if opt == '--cflags': flags.extend(getvar('CFLAGS').split()) print ' '.join(flags) elif opt in ('--libs', '--ldflags'): - libs = sysconfig.get_config_var('LIBS').split() + libs = getvar('LIBS').split() + getvar('SYSLIBS').split() libs.append('-lpython'+pyver) if opt == '--ldflags': libs.insert(0, '-L' + getvar('LIBPL')) |