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 pitrou
Recipients brett.cannon, lemburg, mark.dickinson, orsenthil, pitrou, rhettinger, vstinner
Date 2010-08-10.09:32:46
SpamBayes Score 2.8928e-10
Marked as misclassified No
Message-id <1281432763.3147.4.camel@localhost.localdomain>
In-reply-to <>
> > heapq tries to import _heapq but, at this point, the build dir 
> > (such as "build/lib.linux-x86_64-3.2/") hasn't been added to sys.path
> The problem only exists for developers, not for an installation copy
> of Python?

This particular problem indeed (for developers and for buildbots - see
the weird test_heapq failures on some OS X buildbots).

> Another approach is to call required site code earlier (eg. rewrite it
> in C and execute it before loading the locale module).

Indeed, but since it calls sysconfig.get_platform(), I'm not sure how
much code would need to be rewritten in C.
Date User Action Args
2010-08-10 09:32:48pitrousetrecipients: + pitrou, lemburg, brett.cannon, rhettinger, mark.dickinson, orsenthil, vstinner
2010-08-10 09:32:46pitroulinkissue9548 messages
2010-08-10 09:32:46pitroucreate