[issue38549] Compiler build paths and related environment variables are ignored for native builds

2019-10-21 Thread STINNER Victor
STINNER Victor added the comment: > However in native builds (not cross-compiling) these variables/directories > are ignored which leads to failure of e.g. building the BZip2 extension > (among others). Python does not explicitly ignore these environment variable, so I'm not sure how setup.

[issue38549] Compiler build paths and related environment variables are ignored for native builds

2019-10-21 Thread STINNER Victor
STINNER Victor added the comment: > This did work ages ago, but was broken when it was decided that compiler > paths (output of `gcc -E -v`) is no longer used for native builds and that > function was later even renamed: > https://github.com/python/cpython/commit/32f5fdd7f4213743fe2f6eedd0fe

[issue38549] Compiler build paths and related environment variables are ignored for native builds

2019-10-21 Thread Alex Grund
New submission from Alex Grund : In e.g. Linux users can set CPATH and LIBRARY_PATH to a list of paths considered by e.g. GCC, Clang, ... as if they were passed to `-I`, `-L` These paths show up in the verbose compiler output too. However in native builds (not cross-compiling) these variables