Re: [Cython] help getting NumPy into a 32-bit Jenkins build environment

2012-08-02 Thread Stefan Behnel
Lisandro Dalcin, 31.07.2012 18:59: > On 28 July 2012 06:37, Stefan Behnel wrote: >> I've been trying to set up a 32bit build environment on Jenkins. Most of it >> works nicely by just switching to "gcc -m32", but NumPy fails to build with >> that setup due to the lack of dependencies. It actually f

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Stefan Behnel
Yaroslav Halchenko, 02.08.2012 21:54: > On Thu, 02 Aug 2012, Stefan Behnel wrote: >>> just a side-note -- I didn't know that StrictVersion doesn't play nicely >>> with LooseVersion to any degree: > >>> $> python -c 'from distutils.version import LooseVersion as LV, >>> StrictVersion as SV; print

Re: [Cython] Add includes to generated header files

2012-08-02 Thread Jeff Copeland
On Thu, Aug 2, 2012 at 8:43 PM, Stefan Behnel wrote: > Jeff Copeland, 03.08.2012 02:18: >> I'm working on some C++ projects and I'm using cython to embed python >> code. In an effort to make things easy for C++ devs not as familiar >> with cython/python I've made a small change to insert #include

Re: [Cython] Bad interaction between cimported types and module cleanup

2012-08-02 Thread Stefan Behnel
Stefan Behnel, 03.08.2012 06:04: > Lisandro, could you open a pull request with only the single line change > and a comment that properly explains why we are doing this? A code comment, just to be clear. Stefan ___ cython-devel mailing list cython-deve

Re: [Cython] Bad interaction between cimported types and module cleanup

2012-08-02 Thread Stefan Behnel
Lisandro Dalcin, 03.08.2012 00:36: > Basically, the module cleanup function nullifies the type ptr of > cimported parent types, but tp_dealloc slots of children types access > these null pointers, then you get a segfault. Looking at Py_Finalize() > , atexit functions are run BEFORE a gargabe collec

Re: [Cython] Add includes to generated header files

2012-08-02 Thread Stefan Behnel
Jeff Copeland, 03.08.2012 02:18: > I'm working on some C++ projects and I'm using cython to embed python > code. In an effort to make things easy for C++ devs not as familiar > with cython/python I've made a small change to insert #includes in > generated header files the same as is done in genera

[Cython] Add includes to generated header files

2012-08-02 Thread Jeff Copeland
I'm working on some C++ projects and I'm using cython to embed python code. In an effort to make things easy for C++ devs not as familiar with cython/python I've made a small change to insert #includes in generated header files the same as is done in generated c code. This allows one who is using

[Cython] Fwd: [ANN] SIAM Conference on Computational Science & Engineering Submission Deadlines Approaching!

2012-08-02 Thread Fernando Perez
Dear Colleagues, the SIAM CSE13 conference will be held next year in Boston, and this is a conference that is well suited for much of the type of work that goes on in the open source scientific Python development community (and Julia). The conference is co-chaired by Hans-Petter Langtangen, well

[Cython] Bad interaction between cimported types and module cleanup

2012-08-02 Thread Lisandro Dalcin
Basically, the module cleanup function nullifies the type ptr of cimported parent types, but tp_dealloc slots of children types access these null pointers, then you get a segfault. Looking at Py_Finalize() , atexit functions are run BEFORE a gargabe collection step and the destroy of all modules.

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Yaroslav Halchenko
On Thu, 02 Aug 2012, Stefan Behnel wrote: > > just a side-note -- I didn't know that StrictVersion doesn't play nicely > > with LooseVersion to any degree: > > $> python -c 'from distutils.version import LooseVersion as LV, > > StrictVersion as SV; print SV("0.17") > LV("0.18")' > > True > >

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Stefan Behnel
Yaroslav Halchenko, 02.08.2012 19:02: > just a side-note -- I didn't know that StrictVersion doesn't play nicely with > LooseVersion to any degree: > > $> python -c 'from distutils.version import LooseVersion as LV, StrictVersion > as SV; print SV("0.17") > LV("0.18")' > True > > at least in p

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Yaroslav Halchenko
On Thu, 02 Aug 2012, Stefan Behnel wrote: > Bradley M. Froehle, 01.08.2012 18:35: > > Yes, this versioning has also impacted mpi4py which had to add some pretty > > ugly code in setup.py to work around it: > > https://code.google.com/p/mpi4py/source/detail?r=841e9df > >> I am not sure what is

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Stefan Behnel
Bradley M. Froehle, 01.08.2012 18:35: > Yes, this versioning has also impacted mpi4py which had to add some pretty > ugly code in setup.py to work around it: > > https://code.google.com/p/mpi4py/source/detail?r=841e9df > >> I am not sure what is the status on PEP 386 [1] (not yet adopted afaik)

Re: [Cython] [cython-users] Re: Cython 0.17 beta 1 released

2012-08-02 Thread Yaroslav Halchenko
On Wed, 01 Aug 2012, mark florisson wrote: > Thanks for the fix. I also pushed a fix for one more test numpy_test > related to fused types dispatching. That passes all tests for me on 32 > bit linux. > > Yaroslav, could you give it a try on the Debian build servers? FWIW -- 0.16rc1-550-g8880c78