Lisandro Dalcín, 18.12.2009 20:36:
> On Fri, Dec 18, 2009 at 4:26 PM, Lisandro Dalcín wrote:
>> On Fri, Dec 18, 2009 at 4:10 AM, Stefan Behnel wrote:
>>> Note that zip files don't support binaries, though. So a Cython version
>>> running from a zip file will be substantially slower than one that is
>>> properly installed with a compiled parser.
>>>
>> And there is an additional gotcha: using the PXD's in Cython/Includes...

That's not a problem at all. If and how we support that (using setuptools
or not) is totally up to us.


> BTW, we could support this in the future (using the "annoying"
> setuptool mechanism ;-) )

Oh, that's a totally different thing. The problem I have with binaries in
eggs is that setuptools doesn't tell you that it won't work the way it
looks. First time I tried this with lxml, I just set a setup.py flag and it
worked like a snap. It was so easy, I ran it through strace to see how it
had managed to load the .so file from the zip file. It was only then that I
discovered that it wasn't. Instead, setuptools was copying the .so file
into my home directory! This means that a package distributor can easily
fall into the trap of building an egg with binaries ("because it's so
easy"), and the end users of the packages will not be made aware that
something is copied into the home directory of every single user of the
package. So you may end up with tons of copies of DLLs on a system, just
because setuptools managed to trick a developer into believing that it
could do stuff that normally won't work, and that actually doesn't work. Great!

So, big fat warning here: package maintainers, don't fall into that trap!

But I'm perfectly fine with loading Cython uncompiled from a zip file, and
with supporting any sensible way of loading .pxd (and other compilable)
files from them, be it from Cython's own zip file or from user provided
zipped packages that end up in the PYTHONPATH in one way or another.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to