Stefan Behnel wrote: > Hi, > > 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; and in fact, even having to run a makefile is an unecesarry step away from the convenience of Python.
Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
