Re: [Cython] Make the Cython workflow easier

2008-07-16 Thread Robert Bradshaw
On Jun 20, 2008, at 11:13 AM, Fernando Perez wrote: > On Fri, Jun 20, 2008 at 11:09 AM, Dag Sverre Seljebotn > <[EMAIL PROTECTED]> wrote: >> Lisandro Dalcin wrote: >>> Gael, not sure if this will help you, but I wrote this script >>> based in >>> distutils for building *.pyx files on the fly (pe

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Fernando Perez
On Fri, Jun 20, 2008 at 11:24 AM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > I think we already have a good idea. > > 1) I'm doing a Google Summer of Code over the summer for integrating > NumPy. The approach we've eventually, after long discussions, is here: > > http://wiki.cython.org/enha

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Nigel Rowe
On Thu, 19 Jun 2008 16:43:28 +0200, Gael Varoquaux <[EMAIL PROTECTED]> wrote in a message with the id <[EMAIL PROTECTED]>: > 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

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Dag Sverre Seljebotn
Fernando Perez wrote: > On Fri, Jun 20, 2008 at 11:09 AM, Dag Sverre Seljebotn > <[EMAIL PROTECTED]> wrote: > >> Lisandro Dalcin wrote: >> >>> Gael, not sure if this will help you, but I wrote this script based in >>> distutils for building *.pyx files on the fly (perhaps with others >>> co

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Fernando Perez
On Fri, Jun 20, 2008 at 11:09 AM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > Lisandro Dalcin wrote: >> Gael, not sure if this will help you, but I wrote this script based in >> distutils for building *.pyx files on the fly (perhaps with others >> companion C/C++ sources). You basically use i

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Dag Sverre Seljebotn
Lisandro Dalcin wrote: > Gael, not sure if this will help you, but I wrote this script based in > distutils for building *.pyx files on the fly (perhaps with others > companion C/C++ sources). You basically use it as this: > Also remember that Pex already has this feature (as a wrapper/build sy

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Lisandro Dalcin
Gael, not sure if this will help you, but I wrote this script based in distutils for building *.pyx files on the fly (perhaps with others companion C/C++ sources). You basically use it as this: $ cy2py file.pyx [otherfile1.c otherfile2.c] or $ cy2py -c++ file.pyx [otherfile1.cpp otherfile2.cpp]

Re: [Cython] Make the Cython workflow easier

2008-06-20 Thread Gael Varoquaux
On Fri, Jun 20, 2008 at 07:21:30AM +0200, Stefan Behnel wrote: > Gael Varoquaux wrote: > > I'll patiently wait for this feature. > Why not invest a little time to write it yourself? Patience may be a virtue, > but a contribution makes sure you get what you want. Because I am already contributing

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Stefan Behnel
Hi, Gael Varoquaux wrote: > I'll patiently wait for this feature. Why not invest a little time to write it yourself? Patience may be a virtue, but a contribution makes sure you get what you want. Stefan ___ Cython-dev mailing list Cython-dev@codespeak.

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Stefan Behnel
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

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Fernando Perez
On Thu, Jun 19, 2008 at 11:44 AM, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 11:40:46AM -0700, Robert Bradshaw wrote: >> Compile-on-import is certainly something that I would like to >> support. You are right, the workflow is too complicated for the >> average user (especia

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Gael Varoquaux
On Thu, Jun 19, 2008 at 11:40:46AM -0700, Robert Bradshaw wrote: > Compile-on-import is certainly something that I would like to > support. You are right, the workflow is too complicated for the > average user (especially coming from Python). Sweet I am happy to hear this. What got me into thi

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Robert Bradshaw
On Jun 19, 2008, at 11:38 AM, Gael Varoquaux wrote: > On Thu, Jun 19, 2008 at 07:10:17PM +0200, Stefan Behnel 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

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Gael Varoquaux
On Thu, Jun 19, 2008 at 07:10:17PM +0200, Stefan Behnel 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

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Dag Sverre Seljebotn
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 na

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Dag Sverre Seljebotn
Gael Varoquaux wrote: > I have been writing an article geared toward beginners about Python in > science, and the editor asked me a for part where I talk about compiled > languages and Python. While I was writing this part, striving to make it > as easy as possible for beginners, it stroke me that,

Re: [Cython] Make the Cython workflow easier

2008-06-19 Thread Stefan Behnel
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