ubuntu dist-packages

Florian Diesch diesch at spamfence.net
Wed Aug 26 20:37:30 CEST 2009

Robin Becker <robin at reportlab.com> writes:

> I was surprised a couple of days ago when trying to assist a colleage
> with his python setup on a ubuntu 9.04 system.
> We built our c-extensions and manually copied them into place, but
> site-packages wasn't there. It seems that ubuntu now wants stuff to go
> into lib/python2.6/dist-packages.
> What is the relation between dist-packages/site-packages if any? Is
> this just a name change or is there some other problem being
> addressed?
> For developers is it best just to create one's own private
> installations from the original tarballs?

>From /usr/lib/python2.6/site.py:

| For Debian and derivatives, this sys.path is augmented with directories
| for packages distributed within the distribution. Local addons go
| into /usr/local/lib/python<version>/dist-packages, Debian addons
| install into /usr/{lib,share}/python<version>/dist-packages.
| /usr/lib/python<version>/site-packages is not used.


More information about the Python-list mailing list