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 barry
Recipients barry, cdunn2001, eric.araujo, ianb, larry
Date 2010-11-08.19:27:48
SpamBayes Score 1.5283996e-11
Marked as misclassified No
Message-id <1289244472.11.0.416940010982.issue5819@psf.upfronthosting.co.za>
In-reply-to
Content
I'll look at this in more detail, but I can at least answer one question right now:

"The bona-fide known bug: the Debian package mantainer for Python decided to change "site-packages" to "dist-packages" in 2.6, for reasons I still don't quite understand."

This was done as an accommodation to upstream Python developers.  A from-source build of Python installs into /usr/local by default, with a site-packages situated there.  But the Debian interpretation of the FHS states that site-installed (i.e. not through the package manager) add-ons to Python should also live in /usr/local, and /usr/local/lib/pythonX.Y/site-packages was chosen as the most obvious place for that.

Unfortunately, this meant that if you installed Python from source using the defaults, it was possible to clobber either your system Python or your from-source installed Python by installing third party packages to an unintentionally shared directory.  This was a real problem.

Now, the Debian answer (probably rightly so) was that Python's from-source defaults should install into /opt not /usr/local, but this broke a decade's (at least) convention from upstream.  The compromise was to keep Debian's /usr/local interpretation of the FHS, but to choose a directory that would not conflict with a from-source installation of Python.  Thus dist-packages was chosen.  To keep the system Python consistent, Python packages installed via apt are installed to /usr/lib/pythonX.Y/dist-packages too.

I've had discussions with developers on both sides.  It's not an ideal solution to anyone, but I thought it was the best compromise available at that time, and still do.
History
Date User Action Args
2010-11-08 19:27:52barrysetrecipients: + barry, larry, eric.araujo, ianb, cdunn2001
2010-11-08 19:27:52barrysetmessageid: <1289244472.11.0.416940010982.issue5819@psf.upfronthosting.co.za>
2010-11-08 19:27:49barrylinkissue5819 messages
2010-11-08 19:27:48barrycreate