Skip to content

Commit 732aa2f

Browse files
committed
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.
1 parent aaed971 commit 732aa2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/makesetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
185185
case $doconfig in
186186
no) cc="$cc \$(CCSHARED)";;
187187
esac
188-
rule="$obj: $src; $cc \$(CFLAGS) $cpps -c $src"
188+
rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src"
189189
echo "$rule" >>$rulesf
190190
done
191191
case $doconfig in

0 commit comments

Comments
 (0)