Strangely the site-packages directory used by Python (2.6) to place/install modules and packages is nowhere to be found in Ubuntu’s Jaunty Jackalope. The newer directory is called dist-packages, no idea why (Only know that it sounds like its for distribution-installed modules).
So to place a package or a link to one, simply do so in the /usr/local/lib/python2.6/dist-packages/ directory.
or in ~/.local/lib/python2.6/site-packages (since python2.6, http://www.python.org/dev/peps/pep-0370/)
pH7
25 May 09 at 9:10 pm
Yes, there if you want it to be local (per-user). I’ve written that tip elsewhere!
Harsh
25 May 09 at 9:14 pm
you might be looking for: /usr/share/python-support/
i know lots of packages install to that directory
Jeff
25 Jun 09 at 2:50 am
Actually In python 3 the directory is back again
/usr/local/lib/python3.0/site-packages/
hasan
29 Nov 09 at 1:58 pm
If you’re making your own packages, this might be helpful:
http://www.mattvsworld.com/blog/2010/01/ubuntu-distutils-site-packages-vs-dist-packages/
mattvsworld
15 Jan 10 at 9:22 am