Hi,

Gael Varoquaux wrote:
> Writing and running the setup.py breaks my worflow while developping.

It's simple as long as you only use a single .pyx file, but as soon as a
project becomes larger and needs packaging, you need a setup.py anyway.


> What are the other option for building

Distutils have the advantage of providing a portable build setup. That's hard
to get right by hand.

You can also call into distutils directly, BTW, just like the runtests.py
script does. Maybe we could integrate something like that into the "cython"
front-end script to enable a straight build from source to module.


> It would be great if the compile could be done at import time. For
> instance the first run of cython for primes.pyx could create a prime.py
> containing the logics to do the compilation to _primes.so, and end by
> cleaning up the namespace and importing everything from _primes.so.

While I like the idea (it reminds me of tools like pyinline), I don't think
it's a very important use case. You'd end up compiling the module on each
(first) import as the runtime environment likely lacks write permission to the
Python package directory. So why not do it once during installation?

Stefan

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

Reply via email to