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 <[email protected]>
<http://bugs.python.org/issue17679>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com