[Pythonmac-SIG] __import__('pkg_resources').declare_namespace(__name__)
Erik van Blokland
erik at letterror.com
Sat Nov 6 12:54:25 CET 2010
I've found something interesting.
When using setuptools-0.6c11-py2.6.egg importing pkg_resources causes Carbon
and PyObjCTools to be loaded. With setuptools-0.6c9-py2.6.egg this is not
the case.
This is relevant in situations where one doesn't want to import OSX API
modules before daemonising a process. For instance, when starting a twisted
server.
I don't know about why the c11 version imports these modules. I'm glad I
found a workaround. But the problem is bound to come back. So, any clues to
what c11 does that c9 doesn't?
Thanks!
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101106/ca4e60c2/attachment.html>
More information about the Pythonmac-SIG
mailing list