[Numpy-discussion] distutils issue - python 3.1 on windows
Pauli Virtanen
pav at iki.fi
Wed Aug 4 15:40:57 EDT 2010
Wed, 04 Aug 2010 23:34:15 +0800, Ralf Gommers wrote:
[clip]
> I haven't started using py3k yet so I'm still a bit fuzzy about bytes
> vs string. But it's easy to try in the interpreter:
>
>>>> import re
>>>> RE_VERSION = re.compile('(\d+\.\d+(\.\d+)*)')
In the Python 3.1 version I have, this line reads
RE_VERSION = re.compile(b'(\d+\.\d+(\.\d+)*)')
which makes it a byte-regular expression.
[clip]
> That works, thanks. Then there's was still one more problem, _dotblas.c
> was not py3k ready.
Doh! How did I miss that (answer: no tests, and the import error is
masked :)
> With this fix I can build everything under Wine:
> http://github.com/rgommers/numpy/tree/build-py3k Does that look fine?
It compiles, but will probably crash on import :) You need also to return
the module object, see e.g. how it's done in numpy/numarray/_capi.c
I committed a fixed version.
Cheers,
Pauli
More information about the NumPy-Discussion
mailing list