[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler

Eric N. Vander Weele report at bugs.python.org
Fri Mar 15 18:17:01 EDT 2019


Eric N. Vander Weele <ericvw at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33990>
_______________________________________


More information about the Python-bugs-list mailing list