[Numpy-discussion] bdist_egg trips up over non-extension extensions

Pearu Peterson pearu at scipy.org
Tue Jan 24 08:46:07 EST 2006


On Tue, 24 Jan 2006, Robert Kern wrote:

> In particular, numpy can't build into an egg currently because
> numpy/__config__.py is created using Configuration.add_extension() and a
> generator function. In order to make extension modules usable from zipped eggs,
> setuptools generates a pure Python stub loader that will extract the extension
> module to a .hidden directory and load it from there. In this case, since the
> Extension isn't actually an extension, the stub loader is broken, because it
> expects a numpy/__config__.so.
>
> Can we find another way to generate Python code instead of abusing Extension
> this way?

Yes, using py_modules instead of ext_modules would be the correct way to 
go. I'm looking into this issue right now...

Pearu




More information about the NumPy-Discussion mailing list