Hi, Dag Sverre Seljebotn wrote: > Stefan Behnel wrote: >> Gael Varoquaux wrote: >>> 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? >> > Remember that not everybody uses Cython for wrapping libraries; a lot of > people uses it simply for writing code/programs. In those cases there > often are no installation to speak about
What I meant was that you will likely end up installing your software at some point, which the Cython modules are a part of. There's little code that only ever runs on your own computer(s). But I would appreciate simplifying simple cases, especially if they help in dropping the entry level. And interfacing Cython with other code generation tools is always a value by itself. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
