[Numpy-discussion] Python 3 porting

Pauli Virtanen pav at iki.fi
Mon Feb 15 01:55:53 EST 2010


ma, 2010-02-15 kello 00:38 +0100, Xavier Gnata kirjoitti:
> Ok!
> git clone git://github.com/pv/numpy-work.git
> git checkout origin/py3k
> NPY_SEPARATE_BUILD=1 python3.1 setup.py build
> 
> but now it fails during the build:
> 
> In file included from numpy/core/src/multiarray/buffer.c:14,
> from numpy/core/src/multiarray/multiarraymodule_onefile.c:36:
> numpy/core/src/multiarray/buffer.h: At top level:
> numpy/core/src/multiarray/buffer.h:14: error: conflicting types for
> ‘_descriptor_from_pep3118_format’
> numpy/core/src/multiarray/common.c:220: note: previous implicit
> declaration of ‘_descriptor_from_pep3118_format’ was here
> In file included from
> numpy/core/src/multiarray/multiarraymodule_onefile.c:36:
> numpy/core/src/multiarray/buffer.c: In function ‘_buffer_format_string’:
> numpy/core/src/multiarray/buffer.c:151: warning: unused variable ‘repr’

Hmm, I probably tested only the separate compilation properly as it
seems the single-file build is failing. The environment variable is
actually NPY_SEPARATE_COMPILATION=1, not *_BUILD.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list