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 brobecke
Recipients brobecke, loewis, mauger, terry.reedy
Date 2010-08-16.17:31:47
SpamBayes Score 2.6045166e-11
Marked as misclassified No
Message-id <1281979910.35.0.0590996968175.issue7352@psf.upfronthosting.co.za>
In-reply-to
Content
More update on this patch: It's incomplete, and possibly wrong, unfortunately. The issue that someone else noticed is that it does not handle the case when Python was configured with --libdir=...; and I think that the default lib dir on platforms such as Windows and Darwin might be different from the traditional <prefix>/lib as well, although I don't remember anymore (I did the investigation a couple of weeks ago).

I tried to find simple ways to update the script to make it work with a different libdir, but to no avail. :-(

I think that the best option is to enhance the sysconfig module to return the relocated lib path, but the problem is that the script would no longer work with older versions of Python (as older versions of Python would be missing that function). Perhaps one possible acceptable compromise is to call that function only when available and default to the old behavior otherwise. So it'd still be working as well as it does now with older versions of Python, while being slightly better with newer ones...

Just some thoughts...
History
Date User Action Args
2010-08-16 17:31:50brobeckesetrecipients: + brobecke, loewis, terry.reedy, mauger
2010-08-16 17:31:50brobeckesetmessageid: <1281979910.35.0.0590996968175.issue7352@psf.upfronthosting.co.za>
2010-08-16 17:31:48brobeckelinkissue7352 messages
2010-08-16 17:31:47brobeckecreate