Installing packages in /usr/local

Discussion in 'Python' started by Torsten Bronger, Feb 16, 2006.

  1. 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
     
    Torsten Bronger, Feb 16, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Salerno
    Replies:
    30
    Views:
    2,024
    Stephan Kuhagen
    Aug 10, 2006
  2. Yves Dorfsman

    #!/usr/bin/env python vs. #!/usr/bin/python

    Yves Dorfsman, May 2, 2008, in forum: Python
    Replies:
    27
    Views:
    2,089
    Tim Roberts
    May 10, 2008
  3. TsanChung
    Replies:
    4
    Views:
    1,288
    TsanChung
    Sep 21, 2008
  4. anne001
    Replies:
    1
    Views:
    583
  5. Jason Friedman
    Replies:
    0
    Views:
    163
    Jason Friedman
    Dec 27, 2012
Loading...

Share This Page