[New-bugs-announce] [issue17679] sysconfig generation uses some env variables multiple times

Bohuslav "Slavek" Kabrda report at bugs.python.org
Tue Apr 9 15:51:48 CEST 2013


New submission from Bohuslav "Slavek" Kabrda:

When compiling Python 3.3.1, I noticed that some variables like LDFLAGS or CFLAGS in sysconfig have some flags multiple times. (Which BTW breaks distutils.tests.{test_sysconfig_compiler_vars,test_sysconfig_module}) This is caused by interpretation of Makefile in sysconfig._parse_makefile(), which seems to evaluate the variables in Makefile - but some variables in Makefile are formed by expanding env variables multiple times, e.g.:
PY_LDFLAGS=        $(CONFIGURE_LDFLAGS) $(LDFLAGS)
CONFIGURE_LDFLAGS=        @LDFLAGS@
so when doing the build from scratch with configure & make, PY_LDFLAGS gets the content of LDFLAGS twice  (as far as I remember autotools...), CFLAGS gets expanded like 5 times at least.
I think that this is not the correct behaviour, but not sure, maybe I'm doing something wrong.

Thanks.

----------
components: Build
messages: 186408
nosy: bkabrda
priority: normal
severity: normal
status: open
title: sysconfig generation uses some env variables multiple times
type: behavior
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17679>
_______________________________________


More information about the New-bugs-announce mailing list