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.SettingPYTHONHOMEinsteadofPYTHONPATHworksforme(butidonotknowifitbreaksanythingelse):PYTHONHOME=(LIBDEST)/lib-dynload . Setting PYTHONHOME instead of PYTHONPATH works for me (but i do not know if it breaks anything else): PYTHONHOME=(LIBDEST)/lib−dynload.SettingPYTHONHOMEinsteadofPYTHONPATHworksforme(butidonotknowifitbreaksanythingelse):PYTHONHOME=(exec_prefix) The patch is attached.
I'm not sure what "compiling using a user prefix" means. I've certainly specified a prefix containing my home directory and had things work just fine. There isn't enough information here to know what is actually going wrong. Since this issue is two years old I'm guessing the OP has moved on I am going to close it. If you are still interested and want to provide more info, Guiseppe, please reopen the issue and do so.
History
Date
User
Action
Args
2022-04-11 14:56:41
admin
set
github: 48619
2010-12-22 03:32:03
r.david.murray
set
status: open -> closednosy: + r.david.murraymessages: + resolution: works for mestage: resolved