]> granicus.if.org Git - python/commit
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236)
authorVictor Stinner <vstinner@redhat.com>
Fri, 15 Mar 2019 13:57:52 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2019 13:57:52 +0000 (14:57 +0100)
commit86082c22d23285995a32aabb491527c9f5629556
tree59b1cae8e4d09134670b5d3b50cc8a18c12a318c
parent65f64b1903ae85b97a30f514bbc1b7ce940c3af2
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236)

Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
Lib/distutils/sysconfig.py
Lib/distutils/tests/test_sysconfig.py
Misc/NEWS.d/next/Library/2019-03-08-13-32-21.bpo-36235._M72wU.rst [new file with mode: 0644]