[issue22724] byte-compile fails for cross-builds

Benedikt Morbach report at bugs.python.org
Sat Oct 25 02:00:53 CEST 2014


Benedikt Morbach added the comment:

alternatively, introduce a $(PYTHON_FOR_INSTALL), which doesn't set PYTHONPATH.

Then run those steps using that, with the Makefile setting PYTHONPATH=$(DESTDIR)$(LIBDEST), which doesn't contain the compiled modules at that point.

The first solution looks cleaner to me, but might be more tricky to implement, as e.g. Modules/getpath.c makes some assumptions about the location of the build dir.

----------

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


More information about the Python-bugs-list mailing list