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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22724>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to