Thank you Gordon (and Joshua) that's really useful. I think I'll use the site-packages folder then. After doing what you said I've noticed I seem to have multiple installs of Python on my machine (OSX).
/usr/lib/python2.5/ /Library/Python/2.5/ /opt/local/lib/python2.5/ /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ (currently being used) This is probably due in part to upgrading to Leopard and it changing the location, maybe? I presume again it doesn't matter which of these I use aslong as I'm consistent? On Jun 23, 2:23 pm, gordyt <[EMAIL PROTECTED]> wrote: > Jamie the command you quoted "python setup.py install" -- on my system > I have to run it as root or else do "sudo python setup.py install" -- > will copy the files for that module to the appropriate location. > > If the module you are interested in is in pure Python, with no c-code, > you can often just make it available anywhere on your PYTHONPATH. > > In any event, the most common place that extra stuff gets installed is > in your "site-packages" folder. On my Ubuntu machine that is located > in two places: > > /usr/lib/python2.5/site-packages > /usr/local/lib/python2.5/site-packages > > You can always find the location on your system by asking Python > itself: > > >>> import sys > >>> for p in sys.path: > > ... print p > ... > > /usr/lib/python2.5/site-packages > /usr/lib/python2.5/site-packages/lxml-2.1beta2-py2.5-linux-x86_64.egg > /usr/lib/python25.zip > /usr/lib/python2.5 > /usr/lib/python2.5/plat-linux2 > /usr/lib/python2.5/lib-tk > /usr/lib/python2.5/lib-dynload > /usr/local/lib/python2.5/site-packages > /usr/lib/python2.5/site-packages > /usr/lib/python2.5/site-packages/Numeric > /usr/lib/python2.5/site-packages/PIL > /usr/lib/python2.5/site-packages/gst-0.10 > /var/lib/python-support/python2.5 > /usr/lib/python2.5/site-packages/gtk-2.0 > /var/lib/python-support/python2.5/gtk-2.0 > > Here is an example of what I mentioned earlier about installing pure > Python modules... I have both django and report lab checked out of the > repository and just put symbolic links to them in the /usr/local/lib/ > python2.5/site-packages folder: > > [EMAIL PROTECTED]:/usr/local/lib/python2.5/site-packages$ pwd > /usr/local/lib/python2.5/site-packages > [EMAIL PROTECTED]:/usr/local/lib/python2.5/site-packages$ ls -l > total 12 > lrwxrwxrwx 1 root staff 34 2007-12-28 10:29 django -> /home/gordy/ > projects/python/django > -rw-r--r-- 1 root staff 548 2008-02-05 14:14 moin-1.6.1.egg-info > -rw-r--r-- 1 root staff 548 2008-02-05 13:38 moin-1.6.1-py2.5.egg- > info > drwxr-sr-x 25 root staff 4096 2008-02-05 13:38 MoinMoin > lrwxrwxrwx 1 root staff 37 2008-01-15 10:41 reportlab -> /home/ > gordy/projects/python/reportlab > > Works great. > > --gordon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---