Re: [Numpy-discussion] numpydoc for python 3?

2013-01-16 Thread Pauli Virtanen
14.01.2013 14:44, Matthew Brett kirjoitti: [clip] > Pierre's suggestion is good; you can also do something like this: > > # -*- coding: utf8 -*- > import sys > > if sys.version_info[0] >= 3: > a = 'öäöäöäöäö' > else: > a = unicode('öäöäöäöäö', 'utf8') > > The 'coding' line has to

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-16 Thread Jaakko Luttinen
On 01/14/2013 02:44 PM, Matthew Brett wrote: > On Mon, Jan 14, 2013 at 10:35 AM, Jaakko Luttinen > wrote: >> On 01/14/2013 12:53 AM, Matthew Brett wrote: >>> You might be able to get away without 2to3, using the kind of stuff >>> that Pauli has used for scipy recently: >>> >>> https://github.com/s

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-14 Thread Matthew Brett
Hi, On Mon, Jan 14, 2013 at 10:35 AM, Jaakko Luttinen wrote: > On 01/14/2013 12:53 AM, Matthew Brett wrote: >> On Sun, Jan 13, 2013 at 10:46 PM, Jaakko Luttinen >> wrote: >>> I'm a bit stuck trying to make numpydoc Python 3 compatible. I made >>> setup.py try to use distutils.command.build_py.bu

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-14 Thread Pierre Haessig
Hi, Le 14/01/2013 11:35, Jaakko Luttinen a écrit : > Ok, thanks, maybe I'll try to make the tests valid in all Python > versions. It seems there's only one line which I'm not able to transform. > > In doc/sphinxext/tests/test_docscrape.py, on line 559: > assert doc['Summary'][0] == u'öäöäöäöäö

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-14 Thread Jaakko Luttinen
On 01/14/2013 12:53 AM, Matthew Brett wrote: > On Sun, Jan 13, 2013 at 10:46 PM, Jaakko Luttinen > wrote: >> I'm a bit stuck trying to make numpydoc Python 3 compatible. I made >> setup.py try to use distutils.command.build_py.build_py_2to3 in order to >> transform installed code automatically to

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-13 Thread Matthew Brett
Hi, On Sun, Jan 13, 2013 at 10:46 PM, Jaakko Luttinen wrote: > On 2013-01-10 17:16, Jaakko Luttinen wrote: >> On 01/10/2013 05:04 PM, Pauli Virtanen wrote: >>> Jaakko Luttinen aalto.fi> writes: The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-13 Thread Jaakko Luttinen
On 2013-01-10 17:16, Jaakko Luttinen wrote: > On 01/10/2013 05:04 PM, Pauli Virtanen wrote: >> Jaakko Luttinen aalto.fi> writes: >>> The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit >>> different. Which ones should be modified? >> >> The stuff in sphinxext/ is the development

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Jaakko Luttinen
On 01/10/2013 05:04 PM, Pauli Virtanen wrote: > Jaakko Luttinen aalto.fi> writes: >> The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit >> different. Which ones should be modified? > > The stuff in sphinxext/ is the development version of the package on > PyPi, so the changes s

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Pauli Virtanen
Jaakko Luttinen aalto.fi> writes: > The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit > different. Which ones should be modified? The stuff in sphinxext/ is the development version of the package on PyPi, so the changes should be made in sphinxext/ -- Pauli Virtanen ___

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Jaakko Luttinen
The files in numpy/doc/sphinxext/ and numpydoc/ (from PyPI) are a bit different. Which ones should be modified? -Jaakko On 01/10/2013 02:04 PM, Pauli Virtanen wrote: > Hi, > > Jaakko Luttinen aalto.fi> writes: >> I'm trying to use numpydoc (Sphinx extension) for my project written in >> Python 3

Re: [Numpy-discussion] numpydoc for python 3?

2013-01-10 Thread Pauli Virtanen
Hi, Jaakko Luttinen aalto.fi> writes: > I'm trying to use numpydoc (Sphinx extension) for my project written in > Python 3.2. However, installing numpydoc gives errors shown at > http://pastebin.com/MPED6v9G and although it says "Successfully > installed numpydoc", trying to import numpydoc raise

[Numpy-discussion] numpydoc for python 3?

2013-01-09 Thread Jaakko Luttinen
Hi! I'm trying to use numpydoc (Sphinx extension) for my project written in Python 3.2. However, installing numpydoc gives errors shown at http://pastebin.com/MPED6v9G and although it says "Successfully installed numpydoc", trying to import numpydoc raises errors.. Could this be fixed or am I doi