[Numpy-discussion] numpy 2.0, what else to do?

Xavier Gnata xavier.gnata@gmail....
Sun Feb 14 17:38:57 CST 2010


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:

n 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’
In file included from
numpy/core/src/multiarray/multiarraymodule_onefile.c:36:
numpy/core/src/multiarray/buffer.c:204:2: warning: #warning XXX --
should it use UTF-8 here?
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC -Inumpy/core/include
-Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy
-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray
-Inumpy/core/src/umath -Inumpy/core/include -I/usr/include/python3.1
-Ibuild/src.linux-x86_64-3.1/numpy/core/src/multiarray
-Ibuild/src.linux-x86_64-3.1/numpy/core/src/umath -c
numpy/core/src/multiarray/multiarraymodule_onefile.c -o
build/temp.linux-x86_64-3.1/numpy/core/src/multiarray/multiarraymodule_onefile.o"
failed with exit status 1

BTW, is there a better place to discuss these "python3 only" related issues?

Xavier
> Xavier Gnata <xavier.gnata <at> gmail.com> writes:
>   
>> Well I ran git clone git://github.com/pv/numpy-work.git an hour ago (in
>> an empty directory)
>>     
> That will give you the master branch, which indeed does not contain any Py3
> stuff. You need also to switch to the py3k branch:
>
>     git co origin/py3k
>
> To see all available branches, do
>
>     git branch -r
>
>   



More information about the NumPy-Discussion mailing list