Kaydet (Commit) 732aa2f9 authored tarafından Guido van Rossum's avatar Guido van Rossum

Gregor Hoffleit writes:

But IMHO, this problem really reveals an annoyance in Python's
makesetup. makesetup puts the global include directories "$(INCLUDEPY)
$(EXECINCLUDEPY)" in front of the directories defined by the module in
Setup. Therefore global (potentially older) header files are preferred
over the ones set by the module, which makes it hard to compile new
versions of modules when the old versions are installed. AFAIK, the
other way around is common practice for most other software.

This patch to makesetup would be an potential fix for this problem,
though I don't know if it breaks anything else.
üst aaed9710
...@@ -185,7 +185,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' | ...@@ -185,7 +185,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
case $doconfig in case $doconfig in
no) cc="$cc \$(CCSHARED)";; no) cc="$cc \$(CCSHARED)";;
esac esac
rule="$obj: $src; $cc \$(CFLAGS) $cpps -c $src" rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src"
echo "$rule" >>$rulesf echo "$rule" >>$rulesf
done done
case $doconfig in case $doconfig in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment