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 ned.deily
Recipients doughellmann, eric.araujo, ncoghlan, ned.deily, ronaldoussoren
Date 2010-10-31.20:47:54
SpamBayes Score 1.2133922e-06
Marked as misclassified No
Message-id <1288558076.13.0.251432279277.issue10263@psf.upfronthosting.co.za>
In-reply-to
Content
Unfortunately, the problem here is caused by having setuptools or Distribute installed. As released, both setuptools and Distribute install an easy-install.pth into site-packages to insert its "egg" into sys.path.  If you look inside the egg, you'll see it has its own site.py which gets executed first as a bootstrap to do sys.path manipulations after finding and importing the site module from the standard library.  So -m site actually runs the setuptools/distribute site module and not the expected standard library one.  To work as expected, the problem needs to be corrected in setuptools and Distribute so you may want to open issues with both projects if necessary.

BTW, I was unable to reproduce the problem with a current Debian Linux system with the Debian distribute package installed; it seems that the package there is patched to not install easy-install.pth.  I expect you would see the problem there if you installed either manually.
History
Date User Action Args
2010-10-31 20:47:56ned.deilysetrecipients: + ned.deily, ronaldoussoren, ncoghlan, eric.araujo, doughellmann
2010-10-31 20:47:56ned.deilysetmessageid: <1288558076.13.0.251432279277.issue10263@psf.upfronthosting.co.za>
2010-10-31 20:47:54ned.deilylinkissue10263 messages
2010-10-31 20:47:54ned.deilycreate