Installing packages in /usr/local
Torsten Bronger
bronger at physik.rwth-aachen.de
Thu Feb 16 09:34:05 EST 2006
Hallöchen!
I use the Suse 10.0 RPM of Python 2.4. Unfortunately, it doesn't
seem to look for packages in /usr/local because "prefix" and
"exec_prefix" in site.py are the same (namely usr/).
I have my own packages in /usr/local/lib/python/site-packages. (Due
to easier backup, I don't want to change that.) What is the best
way to make Python look there?
I tried PYTHONPATH but I had trouble with a Python cron job which
didn't have the proper environment. I could edit site.py manually,
however, I wonder whether there is a cleaner way?
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus ICQ 264-296-646
More information about the Python-list
mailing list