[Distutils] Problem with ihooks: not working as expected in Py25 with eggs?

Giovanni Bajo rasky at develer.com
Tue Oct 24 00:25:44 CEST 2006


Phillip J. Eby wrote:

> If I'm reading it correctly, ihooks expects modules to be files,
> period.  So it's not going to work with any zipfile, let alone eggs.
> The workaround would be to configure easy_install to --always-unzip
> when installing.  See the manual for details.

Yes that's a workaround but I'd rather avoid it if possible.

> (Note that ihooks predates PEP 302 and therefore does not support
> it.  ihooks in fact *replaces* the built-in import mechanism
> entirely, so it's not likely to work correctly with any other PEP
> 302-based features besides eggs.)

I see. If you were to write the module I showed you, using a PEP-302
compatible system, what would you use? Is it possible to achieve the same
thing in such few lines, but being PEP-302 compatible?
-- 
Giovanni Bajo



More information about the Distutils-SIG mailing list