This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients ajaksu2, alexis, barry, bkabrda, brett.cannon, brian-cameron-oracle, carljm, dhduvall, doko, eric.araujo, loewis, ncoghlan, richard, richburridge, tarek, terry.reedy, trent
Date 2013-05-04.17:53:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367689991.4.0.723945511343.issue1298835@psf.upfronthosting.co.za>
In-reply-to
Content
there is more than one thing addressed with the 'dist-packages' choice of name.

The primary reason is to have a directory where you only find python packages as distributed by the linux distribution, and where installers do not install to by default.  Even if this directory is non-writable, people did call 'sudo python setup.py install', and then did report issues on the Ubuntu tracker caused by these installs. Such a vendor place should never be the default to be installed to by default.

There is a Debian policy to support /usr/local, and that's the reason you find a second directory /usr/local/lib/pythonx.y/dist-packages. A 'sudo python setup.py install' installs into this location, distribution maintainers providing Debian packages are supposed to call setup.py install --install-layout=deb to install into the debian system installation.

At this time Barry still new to distro policies, was surprised to find /usr/local/lib/pythonx.y/site-packages being used by the system python, which is also used by a local python build which is configured without any --prefix parameters. So the system python now uses dist-packages in both /usr and /usr/local to not interfere with a local python installation.

Note that for python3, Debian and Ubuntu are trying to share dist-packages across python3 versions to ease upgrades from one version to the other, and trying to support more than one version during the upgrade (calling that /usr/lib/python3/dist-packages).
History
Date User Action Args
2013-05-04 17:53:11dokosetrecipients: + doko, loewis, barry, brett.cannon, richard, terry.reedy, ncoghlan, ajaksu2, richburridge, tarek, trent, carljm, eric.araujo, dhduvall, alexis, bkabrda, brian-cameron-oracle
2013-05-04 17:53:11dokosetmessageid: <1367689991.4.0.723945511343.issue1298835@psf.upfronthosting.co.za>
2013-05-04 17:53:11dokolinkissue1298835 messages
2013-05-04 17:53:11dokocreate