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

Eric N. Vander Weele report at bugs.python.org
Thu Jun 28 15:13:38 EDT 2018


New submission from Eric N. Vander Weele <ericvw at gmail.com>:

When specifying CPPFLAGS during `./configure`, `sysconfig.get_config_var('CPPFLAGS')` does capture the originally specified flags.  However, when building a C/C++ extension, any flags specified via CPPFLAGS are not present during compilation of extension source files.

Since preprocessor flags (e.g., '-I' rules) may be used during `./configure` instead of `CFLAGS`, it appears that the `CPPFLAGS` captured should also be injected when customizing the compiler executable to be invoked.

I have PR that will be submitted and linked shortly.

----------
components: Build, Distutils
messages: 320683
nosy: dstufft, eric.araujo, ericvw
priority: normal
severity: normal
status: open
title: CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33990>
_______________________________________


More information about the New-bugs-announce mailing list