[Distutils] __init__.py getting left out of mpkg

Ian Bicking ianb at colorstudy.com
Wed Mar 7 18:38:44 CET 2007


Phillip J. Eby wrote:
> At 02:29 PM 3/6/2007 -0500, jason pellerin wrote:
>> I've been meaning to ask about this same issue, specifically with
>> respect to namespace packages, bdist_rpm and imp. I've had to patch
>> the spec files for all namespace packages that we build as RPMs, since
>> although the .pth file works when using import or __import__, imp
>> doesn't seem to recognize it, and that breaks Paste's app loading.
> 
> Then Paste's app loading is broken, and wouldn't work with an egg either, 
> if it's using "imp" and ignoring the package's __path__.

I'm not sure which part of Paste is in question, but the only importing 
that I can think of which it does is with pkg_resources or with __import__.


-- 
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org


More information about the Distutils-SIG mailing list