New submission from Giuseppe Ottaviano <[EMAIL PROTECTED]>: Hi all, I am trying to compile python 2.6 using a user directory as prefix. In the the byte-compiling step of install, compileall.py fails to load all the .so modules (it fails for zlib.so and raises an exception for unicodedata.so), so the build fails. I think it is because python is invoked by the makefile with the env variables
PYTHONPATH=$(DESTDIR)$(LIBDEST) while the .so are in $(LIBDEST)/lib-dynload . Setting PYTHONHOME instead of PYTHONPATH works for me (but i do not know if it breaks anything else): PYTHONHOME=$(exec_prefix) The patch is attached. ---------- components: Build files: make.patch keywords: patch messages: 76120 nosy: ot severity: normal status: open title: Error building to a nonstandard prefix (with patch) type: compile error versions: Python 2.6 Added file: http://bugs.python.org/file12076/make.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4369> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com