Installing packages in /usr/local

T

Torsten Bronger

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top