numpy-1.0.4 fails to compile with python-2.6. numpy-1.2.1 compiles with warnings and fails self test. warnings need to be examined: build/src.linux-x86_64-2.6/numpy/core/include/numpy/config.h:14:1: warning: "HAVE_LOG1P" redefined In file included from /usr/include/python2.6/Python.h:8, from numpy/core/src/multiarraymodule.c:18: /usr/include/python2.6/pyconfig.h:386:1: warning: this is the location of the previous definition In file included from numpy/core/src/arraytypes.inc.src:2, from numpy/core/src/arrayobject.c:537, from numpy/core/src/multiarraymodule.c:97: build/src.linux-x86_64-2.6/numpy/core/include/numpy/config.h:15:1: warning: "HAVE_EXPM1" redefined In file included from /usr/include/python2.6/Python.h:8, from numpy/core/src/multiarraymodule.c:18: /usr/include/python2.6/pyconfig.h:164:1: warning: this is the location of the previous definition In file included from numpy/core/src/arraytypes.inc.src:2, from numpy/core/src/arrayobject.c:537, from numpy/core/src/multiarraymodule.c:97: build/src.linux-x86_64-2.6/numpy/core/include/numpy/config.h:19:1: warning: "HAVE_ISNAN" redefined In file included from /usr/include/python2.6/Python.h:8, from numpy/core/src/multiarraymodule.c:18: /usr/include/python2.6/pyconfig.h:326:1: warning: this is the location of the previous definition In file included from numpy/core/src/arraytypes.inc.src:2, from numpy/core/src/arrayobject.c:537, from numpy/core/src/multiarraymodule.c:97: build/src.linux-x86_64-2.6/numpy/core/include/numpy/config.h:20:1: warning: "HAVE_ISINF" redefined self test failure: ====================================================================== ERROR: Tests the min/max functions with explicit outputs ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/tmp/portage/dev-python/numpy-1.2.1/work/numpy-1.2.1/test/lib/python/numpy/ma/tests/test_core.py", line 699, in test_minmax_funcs_with_output result = npfunc(xm,axis=0,out=nout) File "/var/tmp/portage/dev-python/numpy-1.2.1/work/numpy-1.2.1/test/lib/python/numpy/core/fromnumeric.py", line 1569, in amin return amin(axis, out) File "/var/tmp/portage/dev-python/numpy-1.2.1/work/numpy-1.2.1/test/lib/python/numpy/ma/core.py", line 3119, in min np.putmask(out, newmask, np.nan) ValueError: cannot convert float NaN to integer ====================================================================== FAIL: test_umath.TestComplexFunctions.test_against_cmath ---------------------------------------------------------------------- Traceback (most recent call last): File "//usr/lib64/python2.6/site-packages/nose/case.py", line 182, in runTest self.test(*self.arg) File "/var/tmp/portage/dev-python/numpy-1.2.1/work/numpy-1.2.1/test/lib/python/numpy/core/tests/test_umath.py", line 268, in test_against_cmath assert abs(a - b) < atol, "%s %s: %s; cmath: %s"%(fname,p,a,b) AssertionError: arcsin 2: (1.57079632679-1.31695789692j); cmath: (1.57079632679+1.31695789692j) ---------------------------------------------------------------------- Ran 1740 tests in 13.425s FAILED (KNOWNFAIL=1, errors=1, failures=1) emerge --info Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.7-r2, 2.6.28-vs2.3.0.36.4-gentoo x86_64) ================================================================= System uname: Linux-2.6.28-vs2.3.0.36.4-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.0 Timestamp of tree: Sat, 07 Feb 2009 21:15:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.4-r2, 2.6.1 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 9999 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" http://mirror.internode.on.net/pub/gentoo http://ftp.swin.edu.au/gentoo/ http://mirror.isp.net.au/ftp/pub/gentoo/ http://gentoo.osuosl.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/layman/openrc /usr/local/layman/gnash-cvs /usr/local/layman/x11 /usr/local/layman/sunrise" SYNC="rsync://mirror.internode.on.net/gentoo-portage" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS using dev-python/nose-0.10.4
Upstream svn is already working with python-2.6. Changes do not affect only tests, and are large enough so that I think it's probably more reasonnable to wait for a new release.
hmm well there is a 1.3.0-rc1 of numpy? Could we get it in portage?
numpy-1.3.0 now in main tree and python-2.6 clean.