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 ncoghlan
Recipients doughellmann, eric.araujo, ncoghlan, ned.deily, ronaldoussoren, tarek
Date 2010-11-02.21:56:47
SpamBayes Score 0.0014607599
Marked as misclassified No
Message-id <1288735009.59.0.799405234619.issue10263@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, because the internal import system isn't fully exposed, runpy and a couple of other tools in the standard library rely on the emulation in pkgutil instead. I know there are some differences between the emulation and the builtin mechanism on Windows in terms of search order, but I thought they were the same on OS X.

Manipulating sys.path and the various caches in sys should affect both import mechanisms though - just what are setuptools/distribute doing?

I'm also curious as to which version of the module importlib finds ("import importlib; print(importlib.import_module("site").__file__)" will tell you that for both 2.7 and 3.x)
History
Date User Action Args
2010-11-02 21:56:49ncoghlansetrecipients: + ncoghlan, ronaldoussoren, tarek, ned.deily, eric.araujo, doughellmann
2010-11-02 21:56:49ncoghlansetmessageid: <1288735009.59.0.799405234619.issue10263@psf.upfronthosting.co.za>
2010-11-02 21:56:48ncoghlanlinkissue10263 messages
2010-11-02 21:56:47ncoghlancreate