[Bug 197219] Re: /usr/local/lib/python/sitecustomize.py broken due to overriding sitecustomize in /etc
jtniehof
197219 at bugs.launchpad.net
Wed Mar 15 13:43:26 UTC 2017
Explicitly setting PYTHONPATH to /usr/local/lib/site-python does the
trick OMM (16.04). Whether it's best to then copy-paste
/etc/sitecustomize.py into the local one, get into imp/importlib
machinery, or decide one doesn't care about apport, is left as an
exercise to the reader.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to diveintopython in Ubuntu.
https://bugs.launchpad.net/bugs/197219
Title:
/usr/local/lib/python/sitecustomize.py broken due to overriding
sitecustomize in /etc
Status in diveintopython package in Ubuntu:
Triaged
Status in python2.5 package in Ubuntu:
Won't Fix
Status in python2.6 package in Ubuntu:
Won't Fix
Bug description:
sitecustomize.py files have been added to /etc/python2.5/ nad
/usr/lib/python2.5/ in hardy, which breaks the use of /usr/local/lib
/site-python/sitecustomize.py, silently causing it to not be imported.
My impression has always been that sitecustomize.py is to be reserved
for the user (i.e., it's the python equivilent of debian's
/usr/local/, thou shalt not touch it).
site.py already allows for distribution specific additions; if they
are to be placed outside site.py, then they should be placed in a
third file such that the import of sitecustomize.py still proceeds as
expected by the user.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/diveintopython/+bug/197219/+subscriptions
More information about the foundations-bugs
mailing list