Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
On Mon, Nov 23, 2009 at 10:08 AM, Pauli Virtanen wrote: > Setup.py runs 2to3 automatically for all changed files. Of course, if it's > possible to cater for24 and 3 at the same time,that's good. How do you work > around the relative imports andthe changed exception catching syntax? > hi, see m

Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
awesome work Pauli! ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
On Mon, Nov 23, 2009 at 7:19 AM, David Cournapeau wrote: > On Mon, Nov 23, 2009 at 2:35 PM, Pauli Virtanen wrote: > >> It might be nice to have this merged in at some point after 1.4.0 (after >> the most obvious glaring bugs have been fixed), so that we could perhaps >> start aiming for Python3 c

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Dag Sverre Seljebotn
Pauli Virtanen wrote: > Mon, 23 Nov 2009 08:58:47 +0100, Sturla Molden wrote: > >> Pauli Virtanen skrev: >> >>> XXX: 3K: numpy.random is disabled for now, uses PyString_* XXX: 3K: >>> numpy.ma is disabled for now -- some issues >>> >>> >> I thought numpy.random uses Cython? Is it

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Pierre GM
On Nov 23, 2009, at 4:36 AM, Pauli Virtanen wrote: > Mon, 23 Nov 2009 01:40:00 -0500, Pierre GM wrote: > [clip] >>> XXX: 3K: numpy.ma is disabled for now -- some issues >> >> What are the issues ? > > Something resolving which would have taken more than 5 minutes :) > Possibly because something

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Pauli Virtanen
Mon, 23 Nov 2009 08:58:47 +0100, Sturla Molden wrote: > Pauli Virtanen skrev: >> XXX: 3K: numpy.random is disabled for now, uses PyString_* XXX: 3K: >> numpy.ma is disabled for now -- some issues >> > I thought numpy.random uses Cython? Is it just a matter of recompiling > the pyx-file? The Cyt

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Pauli Virtanen
Mon, 23 Nov 2009 01:40:00 -0500, Pierre GM wrote: [clip] >> XXX: 3K: numpy.ma is disabled for now -- some issues > > What are the issues ? Something resolving which would have taken more than 5 minutes :) Possibly because something that ma depends on is currently broken in numpy.core. I just w

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread David Cournapeau
Pauli Virtanen wrote: > Setup.py runs 2to3 automatically for all changed files. Yes, but I think it is more practical to have the build process to be 2 and 3-compatible. > Of course, if it's possible to cater for24 and 3 at the same time,that's > good. How do you work around the relative import

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Pauli Virtanen
The issue with longs is that we wouldn't want array([1,2,3]) create object arrays -- so we need to decide on casting rules for longs. Currently, I think they're treated like python2 ints. -- alkuper. viesti -- Aihe: Re: [Numpy-discussion] Numpy on Python3 Lähettäjä: Charles R Harris

Re: [Numpy-discussion] Numpy on Python3

2009-11-23 Thread Pauli Virtanen
Setup.py runs 2to3 automatically for all changed files. Of course, if it's possible to cater for24 and 3 at the same time,that's good. How do you work around the relative imports andthe changed exception catching syntax? -- alkuper. viesti -- Aihe: Re: [Numpy-discussion] Numpy

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Sturla Molden
Pauli Virtanen skrev: > XXX: 3K: numpy.random is disabled for now, uses PyString_* > XXX: 3K: numpy.ma is disabled for now -- some issues > I thought numpy.random uses Cython? Is it just a matter of recompiling the pyx-file? > I remember Dag was working on this a bit: how far did it go? > >

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Pierre GM
On Nov 23, 2009, at 12:35 AM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009, 20:

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 10:35 PM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread David Cournapeau
On Mon, Nov 23, 2009 at 2:35 PM, Pauli Virtanen wrote: > It might be nice to have this merged in at some point after 1.4.0 (after > the most obvious glaring bugs have been fixed), so that we could perhaps > start aiming for Python3 compatibility in Numpy 1.5.0. One thing I have on my end is a nu

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 10:35 PM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009

[Numpy-discussion] Numpy on Python3

2009-11-22 Thread Pauli Virtanen
http://github.com/pv/numpy-work/tree/py3k $ mkdir -p $PWD/dist/lib/python3.1/site-packages $ python3 setup.py install --prefix=$PWD/dist $ cd $PWD/dist/lib/python3.1/site-packages && python3 Python 3.1.1+ (r311:74480, Oct 11 2009, 20:22:16) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits