Eric N. Vander Weele <eri...@gmail.com> added the comment:

I discovered that `Makefile.in.pre` injects include paths for building the 
interpreter, itself, which should probably not be passed along via distutils 
for building C/C++ extensions 😕.

https://github.com/python/cpython/blob/842a2f07f2f08a935ef470bfdaeef40f87490cfc/Makefile.pre.in#L101

It seems like more investigation is required in determining the purpose of 
`CPPFLAGS` with respect to building the interpreter and if `distutils` should 
be passing along at`./configure` time of the interpreter.

For now, specifying include paths via `CFLAGS` will still suffice until the 
scope of `CPPFLAGS` is better defined.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33990>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to