Author yan12125
Recipients koobs, ned.deily, vstinner, yan12125
Date 2019-03-16.03:48:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552708120.92.0.429853146318.issue36235@roundup.psfhosted.org>
In-reply-to
Content
After this patch, test_distutils failed if $CPPFLAGS is not empty when building CPython. For example:

$ export CPPFLAGS=-DFOO=BAR
$ ./configure
$ make
$ ./python -m test test_distutils   
Run tests sequentially
0:00:00 load avg: 0.45 [1/1] test_distutils
test test_distutils failed -- Traceback (most recent call last):
  File "/home/yen/Projects/cpython/Lib/distutils/tests/test_sysconfig.py", line 99, in test_customize_compiler
    self.assertEqual(comp.exes['compiler'], 'my_cc --sysconfig-cflags --mycflags')
AssertionError: 'my_cc --sysconfig-cflags --mycflags -DFOO=BAR' != 'my_cc --sysconfig-cflags --mycflags'
- my_cc --sysconfig-cflags --mycflags -DFOO=BAR
?                                    ----------
+ my_cc --sysconfig-cflags --mycflags


test_distutils failed

== Tests result: FAILURE ==

1 test failed:
    test_distutils

Total duration: 2 sec 192 ms
Tests result: FAILURE

Tested with commit d2fdd1fedf6b9dc785cf5025b548a989faed089a.

This is an issue as Arch Linux uses CPPFLAGS="-D_FORTIFY_SOURCE=2" for creating packages [1].

[1] https://git.archlinux.org/svntogit/packages.git/tree/trunk/makepkg.conf?h=packages/pacman#n39
History
Date User Action Args
2019-03-16 03:48:40yan12125setrecipients: + yan12125, vstinner, ned.deily, koobs
2019-03-16 03:48:40yan12125setmessageid: <1552708120.92.0.429853146318.issue36235@roundup.psfhosted.org>
2019-03-16 03:48:40yan12125linkissue36235 messages
2019-03-16 03:48:40yan12125create