[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Sun Sep 2 01:04:11 CEST 2012


Arfrever Frehtes Taifersar Arahesis added the comment:

libinstall target now contains:

	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
		$(PYTHON_FOR_BUILD) -Wi -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
	...
	@for d in $(LIBSUBDIRS); \
	do \
		a=$(srcdir)/Lib/$$d; \
		if test ! -d $$a; then continue; else true; fi; \
		if test `ls $$a | wc -l` -lt 1; then continue; fi; \
		b=$(LIBDEST)/$$d; \
		for i in $$a/*; \

There is a small chance that with high parallelization the wildcard expansion in the last line will occur for $$a == lib2to3 before creation of pickles has finished, resulting in not installation of pickles.
The solution would be to move creation of pickles to a separate target and make it a dependency of libinstall target.

----------

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


More information about the Python-bugs-list mailing list