diff options
author | Gregory M. Tuner <gmt@be-evil.net> | 2014-01-21 14:46:07 -0800 |
---|---|---|
committer | Gregory M. Tuner <gmt@be-evil.net> | 2014-01-21 14:46:07 -0800 |
commit | 53d639eebc840bf6c50b4929ead163ebaf33f410 (patch) | |
tree | 1af55be1982101c22044ec67eb4ee2ab1add6d64 /dev-python | |
parent | app-admin/util-linux-2.24.1-r2: multilib-utize (diff) | |
download | gmt-53d639eebc840bf6c50b4929ead163ebaf33f410.tar.gz gmt-53d639eebc840bf6c50b4929ead163ebaf33f410.tar.bz2 gmt-53d639eebc840bf6c50b4929ead163ebaf33f410.zip |
dev-python/numpy: clone upstream
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/numpy/ChangeLog | 860 | ||||
-rw-r--r-- | dev-python/numpy/Manifest | 13 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.6.1-atlas.patch | 17 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.6.2-distutils.patch | 540 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.6.2-test-pareto.patch | 45 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.7.0-atlas.patch | 17 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.7.1-distutils-python33.patch | 540 | ||||
-rw-r--r-- | dev-python/numpy/files/numpy-1.8.0-no-hardcode-blas.patch | 25 | ||||
-rw-r--r-- | dev-python/numpy/metadata.xml | 17 | ||||
-rw-r--r-- | dev-python/numpy/numpy-1.8.0-r1.ebuild | 144 |
10 files changed, 2218 insertions, 0 deletions
diff --git a/dev-python/numpy/ChangeLog b/dev-python/numpy/ChangeLog new file mode 100644 index 0000000..0c95e71 --- /dev/null +++ b/dev-python/numpy/ChangeLog @@ -0,0 +1,860 @@ +# ChangeLog for dev-python/numpy +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.218 2014/01/18 12:16:02 vapier Exp $ + + 18 Jan 2014; Mike Frysinger <vapier@gentoo.org> numpy-1.7.1.ebuild, + numpy-1.8.0.ebuild: + Add arm64 love. + + 29 Dec 2013; Akinori Hattori <hattya@gentoo.org> numpy-1.7.1.ebuild: + ia64 stable wrt bug #487870 + + 27 Dec 2013; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.8.0.ebuild: + fixed for mkl + + 23 Dec 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.7.1.ebuild: + Stable for sparc, wrt bug #487870 + + 22 Dec 2013; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.8.0.ebuild: + Updated docs, added some extra check to avoid duplicates in generating + site.cfg (bug #493318, thanks Olaf Leidinger) + + 22 Dec 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.7.1.ebuild: + Stable for ppc64, wrt bug #487870 + + 21 Dec 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.7.1.ebuild: + Stable for ppc, wrt bug #487870 + + 02 Dec 2013; Johannes Huber <johu@gentoo.org> numpy-1.7.1.ebuild: + x86 stable, bug #487870 + +*numpy-1.8.0 (26 Nov 2013) + + 26 Nov 2013; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.8.0-no-hardcode-blas.patch, +numpy-1.8.0.ebuild, metadata.xml: + Version bump + + 04 Nov 2013; Matt Turner <mattst88@gentoo.org> numpy-1.7.1.ebuild: + alpha stable, bug 487870. + + 28 Oct 2013; Markus Meier <maekke@gentoo.org> numpy-1.7.1.ebuild: + arm stable, bug #487870 + + 16 Oct 2013; Jeroen Roovers <jer@gentoo.org> numpy-1.7.1.ebuild: + Stable for HPPA (bug #487870). + + 14 Oct 2013; Tony Vroon <chainsaw@gentoo.org> numpy-1.7.1.ebuild: + Marked stable on AMD64 based on arch tester report by Elijah "Armageddon" El + Lazkani in bug #487870. + + 17 Sep 2013; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.6.2-distutils.patch, numpy-1.6.2-r2.ebuild: + Backport distutils patch for stable + + 05 Sep 2013; Michał Górny <mgorny@gentoo.org> numpy-1.6.2-r2.ebuild, + numpy-1.7.1.ebuild: + Clean up PYTHON_COMPAT from old implementations. + + 27 Aug 2013; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.7.1-distutils-python33.patch, -numpy-1.7.0.ebuild, + numpy-1.7.1.ebuild: + Remove trailing spaces from pkg-config calls (bug #444104), fix shared lib + extension (upstream patch) for python-3 (bug #470946), remove old + +*numpy-1.7.1 (16 Apr 2013) + + 16 Apr 2013; Patrick Lauer <patrick@gentoo.org> +numpy-1.7.1.ebuild: + Bump, docs are still 1.7.0 until upstream updates + + 11 Mar 2013; Justin Lecher <jlec@gentoo.org> -numpy-1.6.2.ebuild: + Drop old + + 10 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for s390, wrt bug #458990 + + 05 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for sh, wrt bug #458990 + + 03 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for sparc, wrt bug #458990 + + 01 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for alpha, wrt bug #458990 + + 01 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for arm, wrt bug #458990 + + 01 Mar 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for ia64, wrt bug #458990 + + 28 Feb 2013; Jeroen Roovers <jer@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for HPPA (bug #458990). + + 28 Feb 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for ppc64, wrt bug #458990 + + 28 Feb 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for ppc, wrt bug #458990 + + 27 Feb 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for x86, wrt bug #458990 + + 27 Feb 2013; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2-r2.ebuild: + Stable for amd64, wrt bug #458990 + + 24 Feb 2013; Justin Lecher <jlec@gentoo.org> numpy-1.6.2.ebuild, + numpy-1.6.2-r2.ebuild, +files/numpy-1.6.2-test-pareto.patch, metadata.xml: + Backport fix for test failure (test_pareto) on 32bit systems, #447502 + +*numpy-1.7.0 (19 Feb 2013) + + 19 Feb 2013; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.7.0-atlas.patch, +numpy-1.7.0.ebuild, metadata.xml: + Version bump. Modified patch accordingly, and URL for docs. + + 19 Feb 2013; Justin Lecher <jlec@gentoo.org> numpy-1.6.2.ebuild, + numpy-1.6.2-r2.ebuild: + Use tc-getPKG_CONFIG from toolchain-funcs.eclass instead of plain pkg-config + + 18 Feb 2013; Zac Medico <zmedico@gentoo.org> numpy-1.6.2-r2.ebuild: + Add ~arm-linux keyword. + + 10 Feb 2013; Michał Górny <mgorny@gentoo.org> numpy-1.6.2-r2.ebuild: + Use distutils_install_for_testing(). + +*numpy-1.6.2-r2 (03 Feb 2013) + + 03 Feb 2013; Michał Górny <mgorny@gentoo.org> +numpy-1.6.2-r2.ebuild, + -numpy-1.6.2-r1.ebuild: + Wrap f2py in the -r1 way. + + 01 Feb 2013; Michał Górny <mgorny@gentoo.org> -files/numpy-1.1.0-f2py.patch, + -files/numpy-1.3.0-fenv-freebsd.patch, -files/numpy-1.4.0-interix.patch, + -files/numpy-1.5.1-python-3.2.patch, -files/numpy-1.6.1-import_umath.patch: + Remove obsolete/unused patches. + +*numpy-1.6.2-r1 (01 Feb 2013) + + 01 Feb 2013; Michał Górny <mgorny@gentoo.org> +numpy-1.6.2-r1.ebuild: + Migrate to distutils-r1. + + 10 Jan 2013; Justin Lecher <jlec@gentoo.org> -numpy-1.6.1-r1.ebuild, + metadata.xml: + Cleaned old + + + 29 Dec 2012; Raúl Porcel <armin76@gentoo.org> numpy-1.6.2.ebuild: + alpha/s390/sh/sparc stable wrt #446340 + + 18 Dec 2012; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2.ebuild: + Stable for ia64, wrt bug #446340 + + 17 Dec 2012; Markus Meier <maekke@gentoo.org> numpy-1.6.2.ebuild: + arm stable, bug #446340 + + 16 Dec 2012; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2.ebuild: + Stable for x86, wrt bug #446340 + + 09 Dec 2012; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2.ebuild: + Stable for ppc64, wrt bug #446340 + + 08 Dec 2012; Jeroen Roovers <jer@gentoo.org> numpy-1.6.2.ebuild: + Stable for HPPA (bug #446340). + + 07 Dec 2012; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.2.ebuild: + Stable for ppc, wrt bug #446340 + + 07 Dec 2012; <ago@gentoo.org> numpy-1.6.2.ebuild: + Stable for amd64, wrt bug #446340 + + 07 Dec 2012; Justin Lecher <jlec@gentoo.org> -numpy-1.5.1.ebuild, + -numpy-1.6.0.ebuild, -numpy-1.6.1.ebuild: + Drop old, fixes #404435, #386847 + + 16 Oct 2012; Justin Lecher <jlec@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild, numpy-1.6.1.ebuild, numpy-1.6.1-r1.ebuild, + numpy-1.6.2.ebuild: + Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the + updated fortran-2.eclass + + 14 Oct 2012; Justin Lecher <jlec@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild, numpy-1.6.1-r1.ebuild, numpy-1.6.1.ebuild, + numpy-1.6.2.ebuild: + Prepare for fortran2.eclass update + + 02 Oct 2012; Mike Gilbert <floppym@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild, numpy-1.6.1.ebuild, numpy-1.6.2.ebuild: + Restrict python 3.3 based on testing by Arfrever. This can be reversed in + numpy 1.7. + + 29 Jul 2012; Raúl Porcel <armin76@gentoo.org> numpy-1.6.1-r1.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #418419 + + 28 Jun 2012; Mike Gilbert <floppym@gentoo.org> numpy-1.6.2.ebuild: + Cleanup die usage for EAPI 4. + + 28 Jun 2012; Sebastien Fabbro <fabbros@gentoo.org> numpy-1.6.2.ebuild: + Cleaned up a bit the pkg-config mangling for blas/lapack. Hack to strip -lm + because it would not link with system blas/lapack on prefix + + 28 Jun 2012; Jeroen Roovers <jer@gentoo.org> numpy-1.6.1-r1.ebuild: + Stable for HPPA (bug #418419). + + 08 Jun 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> numpy-1.6.1-r1.ebuild: + x86 stable wrt bug #418419 + + 07 Jun 2012; Brent Baude <ranger@gentoo.org> numpy-1.6.1-r1.ebuild: + Marking numpy-1.6.1-r1 ppc for bug 418419 + + 05 Jun 2012; Brent Baude <ranger@gentoo.org> numpy-1.6.1-r1.ebuild: + Marking numpy-1.6.1-r1 ppc64 for bug 418419 + + 03 Jun 2012; Markus Meier <maekke@gentoo.org> numpy-1.6.1-r1.ebuild: + arm stable, bug #418419 + + 02 Jun 2012; Agostino Sarubbo <ago@gentoo.org> numpy-1.6.1-r1.ebuild: + Stable for AMD64, wrt bug #418419 + +*numpy-1.6.2 (22 May 2012) + + 22 May 2012; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.6.2.ebuild: + Version bump + + 12 May 2012; Alexis Ballier <aballier@gentoo.org> numpy-1.6.1-r1.ebuild: + keyword ~amd64-fbsd + + 04 May 2012; Patrick Lauer <patrick@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild, numpy-1.6.1-r1.ebuild, numpy-1.6.1.ebuild: + Migrating dev-util/pkgconfig -> virtual/pkgconfig + + 20 Feb 2012; Patrick Lauer <patrick@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild, numpy-1.6.1-r1.ebuild, numpy-1.6.1.ebuild: + Restricting pypy #403757 + + 17 Dec 2011; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.6.1-r1.ebuild, + +files/numpy-1.6.1-import_umath.patch: + Added patch for python-3, thanks Johan Bergström, bug #393679 + + 27 Oct 2011; Justin Lecher <jlec@gentoo.org> numpy-1.6.1-r1.ebuild, + files/numpy-1.6.1-atlas.patch: + Included fixes for atlas, #386531; thanks My Th for the patch + +*numpy-1.6.1-r1 (07 Oct 2011) + + 07 Oct 2011; Justin Lecher <jlec@gentoo.org> +numpy-1.6.1-r1.ebuild, + +files/numpy-1.6.1-atlas.patch, metadata.xml: + Fix for missing clapack_* symbols in scipy, #371099 + + 17 Aug 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + numpy-1.6.1.ebuild: + keyword ~sparc-solaris + +*numpy-1.6.1 (26 Jul 2011) + + 26 Jul 2011; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.6.1.ebuild: + Version bump + + 23 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> numpy-1.6.0.ebuild: + ppc64 stable wrt #371673 + + 10 Jul 2011; Raúl Porcel <armin76@gentoo.org> numpy-1.6.0.ebuild: + alpha/ia64/s390/sh/sparc stable wrt #371673 + + 27 Jun 2011; Brent Baude <ranger@gentoo.org> numpy-1.6.0.ebuild: + Marking numpy-1.6.0 ppc for bug 371673 + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild: + Use USE=lapack to depend conditionally on fortran support + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild: + Add dependency on virtual/fortran + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> numpy-1.5.1.ebuild, + numpy-1.6.0.ebuild: + Added fortran-2.eclass support + + 19 Jun 2011; Markus Meier <maekke@gentoo.org> numpy-1.6.0.ebuild: + x86 stable, bug #371673 + + 19 Jun 2011; Markus Meier <maekke@gentoo.org> numpy-1.6.0.ebuild: + arm stable, bug #371673 + + 18 Jun 2011; Markos Chandras <hwoarang@gentoo.org> numpy-1.6.0.ebuild: + Stable on amd64 wrt bug #371673 + + 15 Jun 2011; Jeroen Roovers <jer@gentoo.org> numpy-1.6.0.ebuild: + Stable for HPPA (bug #371673). + +*numpy-1.6.0 (14 May 2011) + + 14 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +numpy-1.6.0.ebuild: + Version bump. + +*numpy-1.6.0_rc3 (08 May 2011) + + 08 May 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +numpy-1.6.0_rc3.ebuild: + Version bump. + +*numpy-1.6.0_beta2 (07 Apr 2011) + + 07 Apr 2011; Sébastien Fabbro <bicatali@gentoo.org> + -numpy-1.6.0_beta1.ebuild, +numpy-1.6.0_beta2.ebuild: + Version bump + + 03 Apr 2011; Raúl Porcel <armin76@gentoo.org> numpy-1.5.1.ebuild: + ia64/s390/sh stable wrt #351487 + +*numpy-1.6.0_beta1 (28 Mar 2011) + + 28 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org> + +numpy-1.6.0_beta1.ebuild: + Version bump. Beta only, does not pass test suite + + 25 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.5.1.ebuild: + Allows cross-compiling, bug #356381 thanks Dylan Smith + + 27 Feb 2011; Tobias Klausmann <klausman@gentoo.org> numpy-1.5.1.ebuild: + Stable on alpha, bug #351487 + + 26 Feb 2011; Michael Weber <xmw@gentoo.org> numpy-1.5.1.ebuild: + sparc stable (bug 351487) + + 25 Jan 2011; Jeroen Roovers <jer@gentoo.org> numpy-1.5.1.ebuild: + Stable for HPPA (bug #351487). + + 15 Jan 2011; Kacper Kowalik <xarthisius@gentoo.org> numpy-1.5.1.ebuild: + ppc64 stable wrt #351487 + + 15 Jan 2011; Markus Meier <maekke@gentoo.org> numpy-1.5.1.ebuild: + arm/x86 stable, bug #351487 + + 13 Jan 2011; Markos Chandras <hwoarang@gentoo.org> numpy-1.5.1.ebuild: + Stable on amd64 wrt bug #351487 + + 12 Jan 2011; Brent Baude <ranger@gentoo.org> numpy-1.5.1.ebuild: + Marking numpy-1.5.1 ppc for bug 306237 + + 12 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.5.1.ebuild, +files/numpy-1.5.1-python-3.2.patch: + Add incomplete fix for compatibility with Python 3.2 (bug #351057). + + 12 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.5.1.ebuild: + Disable tests failing on ppc/ppc64. + + 19 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.3.0-r1.ebuild, numpy-1.3.0-r2.ebuild, numpy-1.4.1.ebuild, + numpy-1.5.1.ebuild: + Restrict Jython ABIs. + + 18 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.5.1.ebuild: + Run tests with Python 3. + + 18 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + -numpy-1.5.0-r2.ebuild, -files/numpy-1.5.0-python3.patch: + Delete. + +*numpy-1.5.1 (19 Nov 2010) + + 19 Nov 2010; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.5.1.ebuild: + Version bump + + 07 Nov 2010; Mark Loeser <halcy0n@gentoo.org> numpy-1.5.0-r2.ebuild: + Mark ~ppc64; bug #306237 + + 08 Oct 2010; Mart Raudsepp <leio@gentoo.org> numpy-1.5.0-r2.ebuild: + Marked ~mips for bug #233554 + + 11 Sep 2010; Kacper Kowalik <xarthisius@gentoo.org> + -numpy-1.5.0-r1.ebuild, numpy-1.5.0-r2.ebuild, + +files/numpy-1.5.0-python3.patch: + Fix infinite compile loop with python3 and gcc-4.5 wrt bug 336781. Thanks + to Ryan for the report. Drop old. + +*numpy-1.5.0-r2 (10 Sep 2010) + + 10 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +numpy-1.5.0-r2.ebuild: + Support Python 3. Install updated documentation. Avoid breaking strict-aliasing + rules. + +*numpy-1.5.0-r1 (09 Sep 2010) + + 09 Sep 2010; Kacper Kowalik <xarthisius@gentoo.org> -numpy-1.2.1.ebuild, + -numpy-1.5.0.ebuild, +numpy-1.5.0-r1.ebuild: + Force numpy to use GNU compilers for linking when FC is set to gfortran, + wrt bug 335908. Drop old. + +*numpy-1.5.0 (02 Sep 2010) + + 02 Sep 2010; Dirkjan Ochtman <djc@gentoo.org> +numpy-1.5.0.ebuild: + Version bump to 1.5.0 (bug 335602). + + 25 Jul 2010; Raúl Porcel <armin76@gentoo.org> numpy-1.4.1.ebuild: + ia64/s390/sh/sparc stable wrt #326251 + + 24 Jul 2010; Markus Meier <maekke@gentoo.org> numpy-1.4.1.ebuild: + arm stable, bug #326251 + + 10 Jul 2010; Christian Faulhammer <fauli@gentoo.org> numpy-1.4.1.ebuild: + stable x86, bug 326251 + + 07 Jul 2010; Jeroen Roovers <jer@gentoo.org> numpy-1.4.1.ebuild: + Stable for HPPA (bug #326251). + + 01 Jul 2010; Markos Chandras <hwoarang@gentoo.org> numpy-1.4.1.ebuild: + Stable on amd64 wrt bug #326251 + + 30 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.2.1.ebuild, numpy-1.3.0-r1.ebuild, numpy-1.3.0-r2.ebuild, + numpy-1.4.1.ebuild: + Set PYTHON_DEPEND. + +*numpy-1.4.1 (22 Apr 2010) + + 22 Apr 2010; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.4.0.ebuild, + -files/numpy-1.4.0-python-2.7.patch, +numpy-1.4.1.ebuild: + Version bump. Removed 1.4.0 because pulled out by upstream for ABI + incompatibilities + + 04 Mar 2010; Joseph Jezak <josejx@gentoo.org> numpy-1.4.0.ebuild: + Marked -ppc/-ppc64 due to a lack of support for long double format. Please + CC ppc/ppc64 if a new version comes out which supports ppc/ppc64's long + double format. + + 24 Feb 2010; Markus Duft <mduft@gentoo.org> numpy-1.4.0.ebuild, + +files/numpy-1.4.0-interix.patch: + added small patch to fix build on interix + + 09 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + numpy-1.4.0.ebuild, +files/numpy-1.4.0-python-2.7.patch: + Fix building with Python 2.7 (bug #300322). + + 06 Jan 2010; Brent Baude <ranger@gentoo.org> numpy-1.3.0-r1.ebuild: + Marking numpy-1.3.0-r1 ppc64 for bug 287575 + +*numpy-1.4.0 (04 Jan 2010) + + 04 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.3.0.ebuild, + +numpy-1.4.0.ebuild: + Version bump. Removed most architecture specific patches, applied + upstream. Fixed the site.cfg generation such that dotblas.so links with + atlas when present (was broken with the introduction of EPREFIX) + + 20 Nov 2009; Sébastien Fabbro <bicatali@gentoo.org> + numpy-1.3.0-r2.ebuild: + Added doc flag, bug #293525, thanks Denilson + +*numpy-1.3.0-r2 (20 Nov 2009) + + 20 Nov 2009; Fabian Groffen <grobian@gentoo.org> +numpy-1.3.0-r2.ebuild, + +files/numpy-1.3.0-darwin-no-arch.patch: + Add patch to prevent numpy's distutils from injecting -arch flags on + Darwin, while this never works + (http://projects.scipy.org/numpy/ticket/1087) + + 16 Nov 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.3.0-r1.ebuild: + ia64/s390/sh/sparc stable wrt #287575 + + 18 Oct 2009; Tobias Klausmann <klausman@gentoo.org> numpy-1.3.0-r1.ebuild: + Stable on alpha, bug #287575 + + 12 Oct 2009; Jeroen Roovers <jer@gentoo.org> numpy-1.3.0-r1.ebuild: + Stable for HPPA (bug #287575). + + 11 Oct 2009; Fabian Groffen <grobian@gentoo.org> numpy-1.3.0-r1.ebuild: + Fix screwup, missing ED definition, bug #288476 + + 10 Oct 2009; Fabian Groffen <grobian@gentoo.org> numpy-1.3.0-r1.ebuild, + +files/numpy-1.3.0-fenv-freebsd.patch: + Merge from Prefix + + 10 Oct 2009; Markus Meier <maekke@gentoo.org> numpy-1.3.0-r1.ebuild: + amd64/arm/x86 stable, bug #287575 + + 07 Oct 2009; nixnut <nixnut@gentoo.org> numpy-1.3.0-r1.ebuild: + ppc stable #287575 + +*numpy-1.3.0-r1 (28 Aug 2009) + + 28 Aug 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +numpy-1.3.0-r1.ebuild: + Set SUPPORT_PYTHON_ABIS. + + 28 Aug 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.3.0.ebuild: + arm/ia64/s390/sh stable wrt #277354 + + 26 Aug 2009; Tobias Klausmann <klausman@gentoo.org> numpy-1.3.0.ebuild: + Stable on alpha, bug #277354 + + 16 Aug 2009; Arun Raghavan <ford_prefect@gentoo.org> numpy-1.3.0.ebuild, + +files/numpy-1.3.0-arm-sh.patch: + Fix arm/sh build + + 09 Aug 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.2.1.ebuild: + arm/sh stable + + 02 Aug 2009; nixnut <nixnut@gentoo.org> numpy-1.3.0.ebuild: + ppc stable #277354 + + 28 Jul 2009; Jeroen Roovers <jer@gentoo.org> numpy-1.3.0.ebuild: + Stable for HPPA (bug #277354). + + 22 Jul 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.3.0.ebuild, + +files/numpy-1.3.0-alpha.patch: + Add patch to fix compilation on alpha + + 20 Jul 2009; Jeremy Olexa <darkside@gentoo.org> numpy-1.3.0.ebuild: + amd64 stable, bug 277354 + + 15 Jul 2009; Jeroen Roovers <jer@gentoo.org> + files/numpy-1.3.0-parisc.patch: + Remove the comment too. + + 15 Jul 2009; Jeroen Roovers <jer@gentoo.org> numpy-1.3.0.ebuild, + +files/numpy-1.3.0-parisc.patch: + Check for __hppa__ not __parisc__ (bug #277438). + + 15 Jul 2009; Christian Faulhammer <fauli@gentoo.org> numpy-1.3.0.ebuild: + stable x86, bug 277354 + + 10 Jul 2009; Ferris McCormick <fmccor@gentoo.org> numpy-1.3.0.ebuild: + Sparc stable, bug #277354. + + 22 Apr 2009; Markus Meier <maekke@gentoo.org> numpy-1.2.1: + amd64 stable, bug #265328 + + 15 Apr 2009; Brent Baude <ranger@gentoo.org> numpy-1.2.1.ebuild: + Marking numpy-1.2.1 ppc64 for bug 265328 + + 14 Apr 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.2.1.ebuild: + ia64/s390/x86 stable wrt #265328 + + 11 Apr 2009; nixnut <nixnut@gentoo.org> numpy-1.2.1.ebuild: + ppc stable #265328 + + 09 Apr 2009; Ferris McCormick <fmccor@gentoo.org> numpy-1.2.1.ebuild: + Sparc stable, Bug #265328. + + 09 Apr 2009; Jeroen Roovers <jer@gentoo.org> numpy-1.2.1.ebuild: + Stable for HPPA (bug #265328). + + 08 Apr 2009; Tobias Klausmann <klausman@gentoo.org> numpy-1.2.1.ebuild: + Stable on alpha, bug #265328 + +*numpy-1.3.0 (07 Apr 2009) + + 07 Apr 2009; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.3.0.ebuild: + Version bump, removed fortran eclass + + 06 Apr 2009; Raúl Porcel <armin76@gentoo.org> numpy-1.0.4-r2.ebuild, + numpy-1.1.1.ebuild, numpy-1.2.1.ebuild: + Add ~arm/~sh + + 18 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org> + numpy-1.0.4-r2.ebuild, numpy-1.1.1.ebuild, numpy-1.2.1.ebuild: + Removed f2py block since it's not in the tree anymore + + 12 Feb 2009; Sébastien Fabbro <bicatali@gentoo.org> ChangeLog: + Fixed a syntax error. Re-added ppc and x86-fbsd now that nose is + keyworded. + + 24 Jan 2009; Brent Baude <ranger@gentoo.org> numpy-1.2.1.ebuild: + Marking numpy-1.2.1 ~ppc64 for bug 23354 + + 12 Jan 2009; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.2.0.ebuild, + numpy-1.2.1.ebuild: + Fixes to pkg-config with lapack when atlas is selected + +*numpy-1.2.1 (06 Nov 2008) + + 06 Nov 2008; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.2.1.ebuild: + Version bump + + 01 Oct 2008; Raúl Porcel <armin76@gentoo.org> numpy-1.2.0.ebuild: + Add ~alpha wrt #233554 + + 29 Sep 2008; Jeroen Roovers <jer@gentoo.org> numpy-1.2.0.ebuild: + Marked ~hppa (bug #233554). + + 28 Sep 2008; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.2.0.ebuild: + Fixed again blas/lapack configuration to be compatible with the available + gentoo implementations + +*numpy-1.2.0 (26 Sep 2008) + + 26 Sep 2008; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.2.0.ebuild: + Version bump. New test framework dependent on dev-python/nose. Re-added + gentoo names for ATLAS libraries. Dropped alpha hppa mips ppc ppc64 + x86-fbsd until nose is keyworded. + + 25 Sep 2008; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.1.0.ebuild, + numpy-1.1.1.ebuild: + One more fix for removal automagic blas/lapack detection, see bug #237739 + +*numpy-1.1.1 (21 Aug 2008) + + 21 Aug 2008; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.1.1.ebuild: + Version bump + +*numpy-1.1.0 (22 Jun 2008) + + 22 Jun 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.1.0-f2py.patch, numpy-1.0.4-r2.ebuild, +numpy-1.1.0.ebuild: + Version bump and added more configuration for better multiple lapack + implementations + + 20 May 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.0.4-cpuinfo.patch, -files/numpy-1.0.4-nocona-cpuinfo.patch, + numpy-1.0.4-r2.ebuild: + Applied cpu patch for AMD phenom architecture, thanks to Nylan (bug #183236) + + 06 May 2008; Markus Dittrich <markusle@gentoo.org> numpy-1.0.4-r2.ebuild: + Fixed linking error when LDFLAGS is not set (see bug #219205). + + 30 Apr 2008; Ryan Hill <dirtyepic@gentoo.org> numpy-1.0.4-r2.ebuild: + Keyword ~mips for bug #181888. + + 31 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.0.4.ebuild, + -numpy-1.0.4-r1.ebuild: + Removed older revisions + + 02 Mar 2008; nixnut <nixnut@gentoo.org> numpy-1.0.4-r2.ebuild: + Stable on ppc wrt bug 211876 + + 29 Feb 2008; Raúl Porcel <armin76@gentoo.org> numpy-1.0.4-r2.ebuild: + alpha/ia64/sparc stable wrt #211876 + + 29 Feb 2008; Santiago M. Mola <coldwind@gentoo.org> numpy-1.0.4-r2.ebuild: + amd64 stable wrt bug #211876 + + 29 Feb 2008; Jeroen Roovers <jer@gentoo.org> numpy-1.0.4-r2.ebuild: + Stable for HPPA (bug #211876). + + 29 Feb 2008; Ferris McCormick <fmccor@gentoo.org> numpy-1.0.4-r2.ebuild: + Sparc stable with USE=lapack --- Bug #211876. + + 29 Feb 2008; Brent Baude <ranger@gentoo.org> numpy-1.0.4-r2.ebuild: + stable ppc64, bug 211791 + +*numpy-1.0.4-r2 (24 Jan 2008) + + 24 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> + +numpy-1.0.4-r2.ebuild: + Re-introduce fortran detection but only when lapack flag is set, to prevent + autodetection and forced multiple fortran linking. Fixed site configuration + file generation to really produce fast blas, some cleaning. + +*numpy-1.0.4-r1 (11 Jan 2008) + + 11 Jan 2008; Justin Bronder <jsbronder@gentoo.org> + +files/numpy-1.0.4-nocona-cpuinfo.patch, +numpy-1.0.4-r1.ebuild: + Fix cpuinfo to correctly detect nocona-based hardware. Bug 183236. + + 04 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.0.3.ebuild, + -numpy-1.0.3.1.ebuild: + Removed obsolete versions + + 26 Dec 2007; Samuli Suominen <drac@gentoo.org> numpy-1.0.4.ebuild: + amd64 stable wrt #202202 + + 24 Dec 2007; Brent Baude <ranger@gentoo.org> numpy-1.0.4.ebuild: + Marking numpy-1.0.4 ppc64 for bug 202202 + + 21 Dec 2007; nixnut <nixnut@gentoo.org> numpy-1.0.4.ebuild: + Stable on ppc wrt bug 202202 + + 19 Dec 2007; Raúl Porcel <armin76@gentoo.org> numpy-1.0.4.ebuild: + alpha/ia64/sparc/x86 stable wrt #202202 + + 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.0.4.ebuild: + Fixed site.cfg generation for external blas/lapack + + 18 Dec 2007; Jeroen Roovers <jer@gentoo.org> numpy-1.0.4.ebuild: + Stable for HPPA (bug #202202). + + 07 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.0.4.ebuild: + Fixed for LDFLAGS, now adding a -shared + + 21 Nov 2007; Joe Peterson <lavajoe@gentoo.org> + +files/numpy-1.0.4-freebsd.patch, numpy-1.0.4.ebuild: + Patch for FreeBSD, and add ~x86-fbsd keyword (bug #199825) + +*numpy-1.0.4 (12 Nov 2007) + + 12 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org> -numpy-1.0.2.ebuild, + +numpy-1.0.4.ebuild: + Version bump + + 29 Oct 2007; Raúl Porcel <armin76@gentoo.org> numpy-1.0.3.ebuild: + alpha stable wrt #180713 + + 15 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> numpy-1.0.3.1.ebuild: + Use the new virtual/cblas. + + 26 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> -numpy-0.9.8.ebuild: + Removed old version + +*numpy-1.0.3.1 (24 Aug 2007) + + 24 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> + +numpy-1.0.3.1.ebuild: + Version bump. Removed fortran dependencies, closing bug #186913. + Cleaned various configure settings. Thanks Vincent Legoll for his work. + + 22 Jul 2007; Christian Faulhammer <opfer@gentoo.org> numpy-1.0.3.ebuild: + stable x86, bug 180713 + + 20 Jul 2007; nixnut <nixnut@gentoo.org> numpy-1.0.3.ebuild: + Stable on ppc wrt bug 180713 + + 17 Jul 2007; Christoph Mende <angelos@gentoo.org> numpy-1.0.3.ebuild: + Stable on amd64 wrt bug #180713 + + 17 Jul 2007; Raúl Porcel <armin76@gentoo.org> numpy-1.0.3.ebuild: + ia64 stable wrt #180713 + + 17 Jul 2007; Markus Rothe <corsair@gentoo.org> numpy-1.0.3.ebuild: + Stable on ppc64; bug #180713 + + 17 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org> numpy-1.0.3.ebuild: + Stable on sparc wrt #180713 + + 09 Jul 2007; Jeroen Roovers <jer@gentoo.org> numpy-1.0.3.ebuild: + Stable for HPPA (bug #180713). + + 14 Jun 2007; Jeroen Roovers <jer@gentoo.org> numpy-1.0.3.ebuild: + Marked ~hppa (bug #181888). + + 14 Jun 2007; Raúl Porcel <armin76@gentoo.org> numpy-1.0.3.ebuild: + Add ~alpha/~ia64 wrt #181888 + + 14 Jun 2007; Gustavo Zacarias <gustavoz@gentoo.org> numpy-1.0.3.ebuild: + Keyworded ~sparc wrt #181888 + + 13 Jun 2007; Lukasz Strzygowski <lucass@gentoo.org> numpy-1.0.3.ebuild: + Fixed src_test to be more verbose. + +*numpy-1.0.3 (25 May 2007) + + 25 May 2007; Sébastien Fabbro <bicatali@gentoo.org> + -files/numpy-1.0.1-cpuinfo.patch, -numpy-1.0.1.ebuild, + -numpy-1.0.1-r1.ebuild, +numpy-1.0.3.ebuild: + version bump and removed older version + +*numpy-1.0.2 (05 Apr 2007) + + 05 Apr 2007; Sébastien Fabbro <bicatali@gentoo.org> +numpy-1.0.2.ebuild: + Version bump. Closing #173359. + + 06 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> + numpy-1.0.1-r1.ebuild: + Fixed a cblas requirement when lapack was not called. Allows F77FLAGS to + be used along FFLAGS for FORTRAN flags. + + 05 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.0.1-cpuinfo.patch, numpy-1.0.1-r1.ebuild: + Fix bug #169262 with upstream patch. Thanks james@superbug.demon.co.uk + for reporting. + + 20 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> + numpy-1.0.1-r1.ebuild: + Updated cblas dependencies. Closing bug #167652, thanks + Grante Edwards <grante@visi.com> for the report. + +*numpy-1.0.1-r1 (19 Feb 2007) + + 19 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/numpy-1.0.1-f2py.patch, metadata.xml, +numpy-1.0.1-r1.ebuild: + Fixed for cblas deps, better testing. Now works with test. Better + compliance to python packages. Added ifc treatment for amd64. + +*numpy-1.0.1 (31 Jan 2007) + + 31 Jan 2007; Steve Arnold <nerdboy@gentoo.org> -numpy-1.0_beta2.ebuild, + -numpy-1.0_rc1.ebuild, +numpy-1.0.1.ebuild: + Bumped to latest full release and cleaned up rc and beta ebuilds (bug + 154275). + + 26 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; numpy-0.9.8.ebuild: + Stable on ppc. + + 24 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; numpy-0.9.8.ebuild, + numpy-1.0_beta2.ebuild, numpy-1.0_rc1.ebuild: + The LDFLAGS situation is worse than I thought. Setting LDFLAGS at all + entirely overrides the linker flags within the build and breaks it. See + comp.lang.python thread 'Building things with setup.py' from 21 Sept. 2006. + + 22 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; + -files/0.9.6-recognize-more-gfortran-versions.patch: + Remove unused patch. + + 21 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; numpy-0.9.8.ebuild, + numpy-1.0_beta2.ebuild, numpy-1.0_rc1.ebuild: + It helps to inherit flag-o-matic. + +*numpy-1.0_rc1 (21 Sep 2006) + + 21 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; + +numpy-1.0_rc1.ebuild: + Bump. + + 21 Sep 2006; Donnie Berkholz <dberkholz@gentoo.org>; numpy-0.9.8.ebuild, + numpy-1.0_beta2.ebuild: + LDFLAGS='-Wl,-O1' breaks the compile. + +*numpy-1.0_beta2 (16 Aug 2006) + + 16 Aug 2006; Alastair Tse <liquidx@gentoo.org> +numpy-1.0_beta2.ebuild: + version bump (#143964). restricted test because it does not work in sandbox. + + 17 Jul 2006; Alastair Tse <liquidx@gentoo.org> -numpy-0.9.6.ebuild, + -numpy-0.9.6-r1.ebuild, numpy-0.9.8.ebuild: + Stable bump for x86. Block on !dev-python/f2py because numpy provides + this package. (#131833) + +*numpy-0.9.8 (14 Jun 2006) + + 14 Jun 2006; Donnie Berkholz <spyderous@gentoo.org>; +numpy-0.9.8.ebuild: + Bump. Incorporates many changes from the science overlay, mainly from bicatali. + + 13 Jun 2006; Donnie Berkholz <spyderous@gentoo.org>; metadata.xml: + Add sci herd as co-maintainer. + + 13 Jun 2006; Donnie Berkholz <spyderous@gentoo.org>; + numpy-0.9.6-r1.ebuild: + Keyword ~ppc. + + 13 Jun 2006; Donnie Berkholz <spyderous@gentoo.org>; + numpy-0.9.6-r1.ebuild: + Fix up weird dep syntax. + +*numpy-0.9.6-r1 (13 Jun 2006) + + 13 Jun 2006; Donnie Berkholz <spyderous@gentoo.org>; + +files/0.9.6-recognize-more-gfortran-versions.patch, + +numpy-0.9.6-r1.ebuild: + Patch to recognize Gentoo gfortran version strings. + + 01 Apr 2006; Olivier Fisette <ribosome@gentoo.org> -numpy-0.9.4.ebuild, + +numpy-0.9.6.ebuild: + Removed old version. + +*numpy-0.9.6 (01 Apr 2006) + + 01 Apr 2006; Olivier Fisette <ribosome@gentoo.org> +numpy-0.9.6.ebuild: + New version. Thanks to bicatali and Sebastien Fabbro <seb@ist.utl.pt> for + their work. + + 01 Apr 2006; Aron Griffis <agriffis@gentoo.org> numpy-0.9.4.ebuild: + Mark 0.9.4 ~ia64 + +*numpy-0.9.4 (07 Feb 2006) + + 07 Feb 2006; Alastair Tse <liquidx@gentoo.org> +numpy-0.9.4.ebuild: + initial ebuild thanks to Alok Singhal (#119305) diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest new file mode 100644 index 0000000..9ef2084 --- /dev/null +++ b/dev-python/numpy/Manifest @@ -0,0 +1,13 @@ +AUX numpy-1.6.1-atlas.patch 829 SHA256 5faada467f38931eb128144bdef72d19b227eb3583bcdc95b973bc2267e3705d SHA512 84e5a820fad9bb2c97c866891b7e4cd5d025c21b4ccff2703b57eabdf3597cb9162d528d13863e1f6fa6b1e50281b2066f12b975feb88cc905b6da6cc60adde5 WHIRLPOOL 1f14425a1dd6717611a77693a90a94e60bde5ecfe82e5d26c0c38aa33e0374b363c135e906ec51c382bf62761d95aa9293d0f98ccf04e07544ad184d39e9d965 +AUX numpy-1.6.2-distutils.patch 20000 SHA256 779c0b03ee25b294f203729e954eed02022113ab18f4a1fbc20c36299dc5c1b8 SHA512 d47c2d4dab77c69fbad4b3a84df493e1e2a584b67d5832b3c11ca5d449935ca4ac5626d3616c8f612e74cb6503ddbf94a44fd1fda7b9aed5f20e8358aaa44c8a WHIRLPOOL bb876d24d56dd13409516e7de3dfce492fd4498ad186016be672b3ef613064c3c7f3fb8f62e0188277d2ea7191efb490e7482fd60413ce0f75df5052c8f8a828 +AUX numpy-1.6.2-test-pareto.patch 1857 SHA256 6e5d42323fdd76ad8e4c7d9dfd313f27e5b301f9ec3a98810779f6e6524e9675 SHA512 342576c546839ed601d32542947b52684b208c89a9fa93176f7d2b1ca77bd7c1179ea2513f094a59a55d01d686cda2b9e2cc07ca386e4c4146fdcc6f980b7235 WHIRLPOOL fae26d2cea2d28b9a569fbf4195401b4b342e25468cf7e3d0750adb306a61d22ed88d1903f8f382740f2a7d76e5c277bb6fd9b622530fe16d14aba0266828583 +AUX numpy-1.7.0-atlas.patch 845 SHA256 fe1097351178aab9fe7fbf4dde87a2e177c53989b6080bb5b2a9059fd596d83f SHA512 a9c4a8b9a11c58462cfc13beec8e5f4045a302c833e792cd42b35d5a0cfb497b594d3cfe8ea51108f447bcdc22308f74bd9dea108de1e6491e3adc761be7dd42 WHIRLPOOL b815cded5082740c8941a6c976345465e1815a926c2bfb8bdb940096f4e928a7065dbbcc3a9b195584dbca0612c725d6a4a6b260fabd50f8ad9af7c29cb9fdab +AUX numpy-1.7.1-distutils-python33.patch 20008 SHA256 5a5f191321b794fea110610246ccbaf985c790e184ce6df6928af0686cc43acd SHA512 a97db2d74d8be34a84d7aafc992379ecfff1303f1b2ea21689a31183b8c433d02a8c86f4c529ada24451188c3dc6895f83cd06cc7a1ad59a732ec94878875a52 WHIRLPOOL efbdf5c8658cc6038ea8881e493c7653a71d185864a1103d20f157f853641f7a52a70bdec3932ed70ceb6d8fc568fe6c7273e03bba8213e262e9d0d7d83d9a10 +AUX numpy-1.8.0-no-hardcode-blas.patch 1153 SHA256 ad79d788189db97178b73f019a47c502bb9297ae7a1b248da878f3f91ab8af3b SHA512 baa29a0c981ede608d890e776026961fb71156eb7804f702623bce775e3b6ce3bb28ced252d9c6fe991429b690b3eef8468d703f79247820527648d6484d23f3 WHIRLPOOL 38db4618b8fe505b711270b9050c56c1541c2fc3094b02ef6a45e776d56f54fd82b79ddc1b65721e0ac08949c6b9354da8c6ae0437b77e3b474ca941d44de9bb +DIST numpy-1.8.0.tar.gz 3779617 SHA256 2764d0819acc77e9ff81b060fe7f69530b0d85c26ac9d162639b787cb227d253 SHA512 ec3d002ed786335e8748983261c96f88a9f1520fc345ad5b810dc02a5e126e15fe5afb02bed1f4b43d580a1da39583d86b84f57dc456b0702653e34e5357c857 WHIRLPOOL 8796d90795ddec62e6d72be433ea00917a63ef39cf3fe81e094f653e1863b69ecdce812995877f78e4324434141b03e2ceb3f872ed4e023b19c6bd9bcc294ac2 +DIST numpy-html-1.8.0.zip 9779825 SHA256 39e853c1aaa711976333782f465f2579ca66e6698393f6ba79f5cc78317b1203 SHA512 33333c48a3f4d27ccddf6696dce4e346f8729d1f398128b3bfebb8a9d53ded7bb62b63a766319f6e49ba7cf8ca4e1ce252996acd263976ad2990bf9650d71043 WHIRLPOOL 7eea0ad3418c55d6104a4a115fcdcd5eeb291b9fc1237724e10dcbbf95bc7a4a23b519c64976ac405fb4c5abbaae87a6c747f9ad695d08b6326b459ba1fb8a15 +DIST numpy-ref-1.8.0.pdf 5324229 SHA256 49ecb1d768eb48598439cc63058f830ca3522fe1cfeba1a321086e9820ae8911 SHA512 d89314215c4adefa487b3e46b2babeda7739ee193fef821846d4df0089fabf2167b47dd2990b6bd423432f75238547548924622c6f3b9a90a36d578450001eb2 WHIRLPOOL 3bb12c719cbe4734014774f1bfc3f98af544ee2c407adb2e3ee988e2b1035ad0ef711eaa68168656be7b034df2db76c8789daa2940a048b4a6cb3af0bb0eca68 +DIST numpy-user-1.8.0.pdf 408447 SHA256 a8c30360f9e46c63cfdf48fa594971d94d68ce59ece08c13d4acde8b14032cfe SHA512 10293dba45377c6f1024125a49810b01e388eb33a3e8ed75b8ec39c2b93e53878cbe62e6b7adbf1e957dc47ef253e20304afa7d86d798fb5198887cbe618131f WHIRLPOOL 70cc5a5e97a919bb027f92ac87127fb1bc08d06e2a131c4b413837e76d8feab9b65d7dc9e95b6e797d057efb6abf0d2b3e7562ee3cd140b1ff1418bad5475335 +EBUILD numpy-1.8.0-r1.ebuild 3864 SHA256 bb0e53fec0785a2fb64a4bffbcf0606d8a0c178fb27614c3066cbbc209902f9c SHA512 b883dc69a669f6f23c878be3b103896a88e319d43f76ecf78234483fcdb08380fc5c42f6e308b0cb6b8efe5bd0d3fdeac27618d6ffd64fe7f0f7c1977a787844 WHIRLPOOL 5b85f4426d71174a8a695fd79346859a614b3e55b5949b8db136f87825ac820386dcd1806755a869cc5362867fa7eff476e082f4be8254691ec531010f411937 +MISC ChangeLog 30412 SHA256 85e87259fc346b3fd9091acfc5bdad419949e30551b6adbc03298aacf5792915 SHA512 fcab054314250c8d048d04eb7aa00c92c1877d1b4bb724d474600758a4aae6aaa08a62df8aadf9b8b223a79bb0ebee7aad2b55abbe3e8547e882660fbe259413 WHIRLPOOL 3604429e1f752cfeaf23b6f7170c858499c2d2297cc4624c34307286ac72f29fb1618ecf5fde0c11c1ea18eb2643e57c678d84899742ff6671e26957c4b72498 +MISC metadata.xml 678 SHA256 184af17845835a595a8b2ee396a6f55baa7234a7b91ebddcf957a5d69c0b01d0 SHA512 6dbcd40d6722b481caf27183618012f3df43fd6fc22f8ddd6f1a3e9e42bc1240f56573616ef32fe8c3ea52addc42172940b3d7c5fa0938b854baeb96daa53d88 WHIRLPOOL e9b5f50c2b2d34745b255d05f65c6762c34fe34a2f097633621479ce909a1e120322cbcd0ded383fae6511240a14a7e9db4f47592715e2919d1c4d615f9bd24d diff --git a/dev-python/numpy/files/numpy-1.6.1-atlas.patch b/dev-python/numpy/files/numpy-1.6.1-atlas.patch new file mode 100644 index 0000000..b10f653 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.6.1-atlas.patch @@ -0,0 +1,17 @@ +--- numpy/distutils/system_info.py 2011-10-10 20:45:44.261316565 +0300 ++++ numpy/distutils/system_info.py 2011-10-10 20:50:22.977932228 +0300 +@@ -255,13 +255,7 @@ + 1 - display warning message + 2 - raise error + """ +- cl = {'atlas':atlas_info, # use lapack_opt or blas_opt instead +- 'atlas_threads':atlas_threads_info, # ditto +- 'atlas_blas':atlas_blas_info, +- 'atlas_blas_threads':atlas_blas_threads_info, +- 'lapack_atlas':lapack_atlas_info, # use lapack_opt instead +- 'lapack_atlas_threads':lapack_atlas_threads_info, # ditto +- 'mkl':mkl_info, ++ cl = {'mkl':mkl_info, + 'lapack_mkl':lapack_mkl_info, # use lapack_opt instead + 'blas_mkl':blas_mkl_info, # use blas_opt instead + 'x11':x11_info, diff --git a/dev-python/numpy/files/numpy-1.6.2-distutils.patch b/dev-python/numpy/files/numpy-1.6.2-distutils.patch new file mode 100644 index 0000000..9fb4d65 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.6.2-distutils.patch @@ -0,0 +1,540 @@ +--- numpy/distutils/misc_util.py.orig 2013-04-06 22:04:05.000000000 -0700 ++++ numpy/distutils/misc_util.py 2013-08-27 11:11:50.970945380 -0700 +@@ -1,3 +1,5 @@ ++from __future__ import division, absolute_import, print_function ++ + import os + import re + import sys +@@ -165,7 +167,7 @@ + fid = open(config_file) + mathlibs = [] + s = '#define MATHLIB' +- for line in fid.readlines(): ++ for line in fid: + if line.startswith(s): + value = line[len(s):].strip() + if value: +@@ -218,8 +220,8 @@ + else: + if include_non_existing: + new_paths.append(n) +- print('could not resolve pattern in %r: %r' \ +- % (local_path,n)) ++ print('could not resolve pattern in %r: %r' % ++ (local_path,n)) + else: + n2 = njoin(local_path,n) + if os.path.exists(n2): +@@ -230,8 +232,8 @@ + elif include_non_existing: + new_paths.append(n) + if not os.path.exists(n): +- print('non-existing path in %r: %r' \ +- % (local_path,n)) ++ print('non-existing path in %r: %r' % ++ (local_path,n)) + + elif is_sequence(n): + new_paths.extend(_fix_paths(n,local_path,include_non_existing)) +@@ -249,11 +251,9 @@ + + _temporary_directory = None + def clean_up_temporary_directory(): +- from numpy.distutils import log + global _temporary_directory + if not _temporary_directory: + return +- log.debug('removing %s', _temporary_directory) + try: + shutil.rmtree(_temporary_directory) + except OSError: +@@ -394,8 +394,7 @@ + return [] + modules = [] + f = open(source,'r') +- f_readlines = getattr(f,'xreadlines',f.readlines) +- for line in f_readlines(): ++ for line in f: + m = f90_module_name_match(line) + if m: + name = m.group('name') +@@ -557,7 +556,7 @@ + def get_ext_source_files(ext): + # Get sources and any include files in the same directory. + filenames = [] +- sources = filter(is_string, ext.sources) ++ sources = [_m for _m in ext.sources if is_string(_m)] + filenames.extend(sources) + filenames.extend(get_dependencies(sources)) + for d in ext.depends: +@@ -568,13 +567,13 @@ + return filenames + + def get_script_files(scripts): +- scripts = filter(is_string, scripts) ++ scripts = [_m for _m in scripts if is_string(_m)] + return scripts + + def get_lib_source_files(lib): + filenames = [] + sources = lib[1].get('sources',[]) +- sources = filter(is_string, sources) ++ sources = [_m for _m in sources if is_string(_m)] + filenames.extend(sources) + filenames.extend(get_dependencies(sources)) + depends = lib[1].get('depends',[]) +@@ -606,11 +605,29 @@ + Linux, but not on OS X. + + """ +- so_ext = distutils.sysconfig.get_config_var('SO') or '' +- # fix long extension for Python >=3.2, see PEP 3149. +- if (not is_python_ext) and 'SOABI' in distutils.sysconfig.get_config_vars(): +- # Does nothing unless SOABI config var exists +- so_ext = so_ext.replace('.' + distutils.sysconfig.get_config_var('SOABI'), '', 1) ++ confvars = distutils.sysconfig.get_config_vars() ++ # SO is deprecated in 3.3.1, use EXT_SUFFIX instead ++ so_ext = confvars.get('EXT_SUFFIX', None) ++ if so_ext is None: ++ so_ext = confvars.get('SO', '') ++ ++ if not is_python_ext: ++ # hardcode known values, config vars (including SHLIB_SUFFIX) are ++ # unreliable (see #3182) ++ # darwin, windows and debug linux are wrong in 3.3.1 and older ++ if (sys.platform.startswith('linux') or ++ sys.platform.startswith('gnukfreebsd')): ++ so_ext = '.so' ++ elif sys.platform.startswith('darwin'): ++ so_ext = '.dylib' ++ elif sys.platform.startswith('win'): ++ so_ext = '.dll' ++ else: ++ # fall back to config vars for unknown platforms ++ # fix long extension for Python >=3.2, see PEP 3149. ++ if 'SOABI' in confvars: ++ # Does nothing unless SOABI config var exists ++ so_ext = so_ext.replace('.' + confvars.get('SOABI'), '', 1) + + return so_ext + +@@ -628,7 +645,7 @@ + if os.path.isfile(s): + filenames.append(s) + else: +- print('Not existing data file:',s) ++ print('Not existing data file:', s) + else: + raise TypeError(repr(s)) + return filenames +@@ -647,56 +664,13 @@ + frame = frame.f_back + return frame + +-class SconsInfo(object): +- """ +- Container object holding build info for building a package with scons. +- +- Parameters +- ---------- +- scons_path : str or None +- Path to scons script, relative to the directory of setup.py. +- If None, no scons script is specified. This can be useful to add only +- pre- and post-hooks to a configuration. +- parent_name : str or None +- Name of the parent package (for example "numpy"). +- pre_hook : sequence of callables or None +- Callables that are executed before scons is invoked. +- Each callable should be defined as ``callable(*args, **kw)``. +- post_hook : sequence of callables or None +- Callables that are executed after scons is invoked. +- Each callable should be defined as ``callable(*args, **kw)``. +- source_files : list of str or None +- List of paths to source files, relative to the directory of setup.py. +- pkg_path : str or None +- Path to the package for which the `SconsInfo` instance holds the +- build info, relative to the directory of setup.py. +- +- Notes +- ----- +- All parameters are available as attributes of a `SconsInfo` instance. +- +- """ +- def __init__(self, scons_path, parent_name, pre_hook, +- post_hook, source_files, pkg_path): +- self.scons_path = scons_path +- self.parent_name = parent_name +- self.pre_hook = pre_hook +- self.post_hook = post_hook +- self.source_files = source_files +- if pkg_path: +- self.pkg_path = pkg_path +- else: +- if scons_path: +- self.pkg_path = os.path.dirname(scons_path) +- else: +- self.pkg_path = '' + + ###################### + + class Configuration(object): + + _list_keys = ['packages', 'ext_modules', 'data_files', 'include_dirs', +- 'libraries', 'headers', 'scripts', 'py_modules', 'scons_data', ++ 'libraries', 'headers', 'scripts', 'py_modules', + 'installed_libraries'] + _dict_keys = ['package_dir', 'installed_pkg_config'] + _extra_keys = ['name', 'version'] +@@ -853,7 +827,7 @@ + caller_level = 1): + l = subpackage_name.split('.') + subpackage_path = njoin([self.local_path]+l) +- dirs = filter(os.path.isdir,glob.glob(subpackage_path)) ++ dirs = [_m for _m in glob.glob(subpackage_path) if os.path.isdir(_m)] + config_list = [] + for d in dirs: + if not os.path.isfile(njoin(d,'__init__.py')): +@@ -895,7 +869,7 @@ + pn = dot_join(*([parent_name] + subpackage_name.split('.')[:-1])) + args = (pn,) + def fix_args_py2(args): +- if setup_module.configuration.func_code.co_argcount > 1: ++ if setup_module.configuration.__code__.co_argcount > 1: + args = args + (self.top_path,) + return args + def fix_args_py3(args): +@@ -922,14 +896,14 @@ + + Parameters + ---------- +- subpackage_name: str,None ++ subpackage_name : str or None + Name of the subpackage to get the configuration. '*' in + subpackage_name is handled as a wildcard. +- subpackage_path: str ++ subpackage_path : str + If None, then the path is assumed to be the local path plus the + subpackage_name. If a setup.py file is not found in the + subpackage_path, then a default configuration is used. +- parent_name: str ++ parent_name : str + Parent name. + """ + if subpackage_name is None: +@@ -985,13 +959,13 @@ + + Parameters + ---------- +- subpackage_name: str ++ subpackage_name : str + name of the subpackage +- subpackage_path: str ++ subpackage_path : str + if given, the subpackage path such as the subpackage is in + subpackage_path / subpackage_name. If None,the subpackage is + assumed to be located in the local path / subpackage_name. +- standalone: bool ++ standalone : bool + """ + + if standalone: +@@ -1029,10 +1003,10 @@ + + Parameters + ---------- +- data_path: seq,str ++ data_path : seq or str + Argument can be either + +- * 2-sequence (<datadir suffix>,<path to data directory>) ++ * 2-sequence (<datadir suffix>, <path to data directory>) + * path to data directory where python datadir suffix defaults + to package dir. + +@@ -1091,14 +1065,14 @@ + pattern_list = allpath(d).split(os.sep) + pattern_list.reverse() + # /a/*//b/ -> /a/*/b +- rl = range(len(pattern_list)-1); rl.reverse() ++ rl = list(range(len(pattern_list)-1)); rl.reverse() + for i in rl: + if not pattern_list[i]: + del pattern_list[i] + # + for path in paths: + if not os.path.isdir(path): +- print('Not a directory, skipping',path) ++ print('Not a directory, skipping', path) + continue + rpath = rel_path(path, self.local_path) + path_list = rpath.split(os.sep) +@@ -1151,7 +1125,7 @@ + + Parameters + ---------- +- files: sequence ++ files : sequence + Argument(s) can be either + + * 2-sequence (<datadir prefix>,<path to data file(s)>) +@@ -1330,7 +1304,7 @@ + + Parameters + ---------- +- files: str, seq ++ files : str or seq + Argument(s) can be either: + + * 2-sequence (<includedir suffix>,<path to header file(s)>) +@@ -1385,9 +1359,9 @@ + + Parameters + ---------- +- name: str ++ name : str + name of the extension +- sources: seq ++ sources : seq + list of the sources. The list of sources may contain functions + (called source generators) which must take an extension instance + and a build directory as inputs and return a source file or list of +@@ -1395,28 +1369,28 @@ + generated. If the Extension instance has no sources after + processing all source generators, then no extension module is + built. +- include_dirs: +- define_macros: +- undef_macros: +- library_dirs: +- libraries: +- runtime_library_dirs: +- extra_objects: +- extra_compile_args: +- extra_link_args: +- extra_f77_compile_args: +- extra_f90_compile_args: +- export_symbols: +- swig_opts: +- depends: ++ include_dirs : ++ define_macros : ++ undef_macros : ++ library_dirs : ++ libraries : ++ runtime_library_dirs : ++ extra_objects : ++ extra_compile_args : ++ extra_link_args : ++ extra_f77_compile_args : ++ extra_f90_compile_args : ++ export_symbols : ++ swig_opts : ++ depends : + The depends list contains paths to files or directories that the + sources of the extension module depend on. If any path in the + depends list is newer than the extension module, then the module + will be rebuilt. +- language: +- f2py_options: +- module_dirs: +- extra_info: dict,list ++ language : ++ f2py_options : ++ module_dirs : ++ extra_info : dict or list + dict or list of dict of keywords to be appended to keywords. + + Notes +@@ -1653,65 +1627,6 @@ + self.installed_pkg_config[self.name] = [(template, install_dir, + subst_dict)] + +- def add_scons_installed_library(self, name, install_dir): +- """ +- Add a scons-built installable library to distutils. +- +- Parameters +- ---------- +- name : str +- The name of the library. +- install_dir : str +- Path to install the library, relative to the current sub-package. +- +- """ +- install_dir = os.path.join(self.package_path, install_dir) +- self.installed_libraries.append(InstallableLib(name, {}, install_dir)) +- +- def add_sconscript(self, sconscript, subpackage_path=None, +- standalone = False, pre_hook = None, +- post_hook = None, source_files = None, package_path=None): +- """Add a sconscript to configuration. +- +- pre_hook and post hook should be sequences of callable, which will be +- use before and after executing scons. The callable should be defined as +- callable(*args, **kw). It is ugly, but well, hooks are ugly anyway... +- +- sconscript can be None, which can be useful to add only post/pre +- hooks.""" +- if standalone: +- parent_name = None +- else: +- parent_name = self.name +- +- dist = self.get_distribution() +- # Convert the sconscript name to a relative filename (relative from top +- # setup.py's directory) +- fullsconsname = self.paths(sconscript)[0] +- +- # XXX: Think about a way to automatically register source files from +- # scons... +- full_source_files = [] +- if source_files: +- full_source_files.extend([self.paths(i)[0] for i in source_files]) +- +- scons_info = SconsInfo(fullsconsname, parent_name, +- pre_hook, post_hook, +- full_source_files, package_path) +- if dist is not None: +- if dist.scons_data is None: +- dist.scons_data = [] +- dist.scons_data.append(scons_info) +- self.warn('distutils distribution has been initialized,'\ +- ' it may be too late to add a subpackage '+ subpackage_name) +- # XXX: we add a fake extension, to correctly initialize some +- # options in distutils command. +- dist.add_extension('', sources = []) +- else: +- self.scons_data.append(scons_info) +- # XXX: we add a fake extension, to correctly initialize some +- # options in distutils command. +- self.add_extension('', sources = []) + + def add_scripts(self,*files): + """Add scripts to configuration. +@@ -2086,11 +2001,6 @@ + """ + self.py_modules.append((self.name,name,generate_config_py)) + +- def scons_make_config_py(self, name = '__config__'): +- """Generate package __config__.py file containing system_info +- information used during building the package. +- """ +- self.py_modules.append((self.name, name, scons_generate_config_py)) + + def get_info(self,*names): + """Get resources information. +@@ -2098,7 +2008,7 @@ + Return information (from system_info.get_info) for all of the names in + the argument list in a single dictionary. + """ +- from system_info import get_info, dict_append ++ from .system_info import get_info, dict_append + info_dict = {} + for a in names: + dict_append(info_dict,**get_info(a)) +@@ -2233,57 +2143,18 @@ + return info + + def is_bootstrapping(): +- import __builtin__ ++ if sys.version_info[0] >= 3: ++ import builtins ++ else: ++ import __builtin__ as builtins ++ + try: +- __builtin__.__NUMPY_SETUP__ ++ builtins.__NUMPY_SETUP__ + return True + except AttributeError: + return False + __NUMPY_SETUP__ = False + +-def scons_generate_config_py(target): +- """generate config.py file containing system_info information +- used during building the package. +- +- usage: +- config['py_modules'].append((packagename, '__config__',generate_config_py)) +- """ +- from distutils.dir_util import mkpath +- from numscons import get_scons_configres_dir, get_scons_configres_filename +- d = {} +- mkpath(os.path.dirname(target)) +- f = open(target, 'w') +- f.write('# this file is generated by %s\n' % (os.path.abspath(sys.argv[0]))) +- f.write('# it contains system_info results at the time of building this package.\n') +- f.write('__all__ = ["show"]\n\n') +- confdir = get_scons_configres_dir() +- confilename = get_scons_configres_filename() +- for root, dirs, files in os.walk(confdir): +- if files: +- file = os.path.join(root, confilename) +- assert root.startswith(confdir) +- pkg_name = '.'.join(root[len(confdir)+1:].split(os.sep)) +- fid = open(file, 'r') +- try: +- cnt = fid.read() +- d[pkg_name] = eval(cnt) +- finally: +- fid.close() +- # d is a dictionary whose keys are package names, and values the +- # corresponding configuration. Each configuration is itself a dictionary +- # (lib : libinfo) +- f.write('_config = %s\n' % d) +- f.write(r''' +-def show(): +- for pkg, config in _config.items(): +- print("package %s configuration:" % pkg) +- for lib, libc in config.items(): +- print(' %s' % lib) +- for line in libc.split('\n'): +- print('\t%s' % line) +- ''') +- f.close() +- return target + + ######################### + +--- numpy/distutils/tests/test_misc_util.py.orig 2013-04-06 22:04:05.000000000 -0700 ++++ numpy/distutils/tests/test_misc_util.py 2013-08-27 11:14:23.438843136 -0700 +@@ -1,7 +1,9 @@ + #!/usr/bin/env python ++from __future__ import division, absolute_import, print_function + + from numpy.testing import * +-from numpy.distutils.misc_util import appendpath, minrelpath, gpaths, rel_path ++from numpy.distutils.misc_util import appendpath, minrelpath, \ ++ gpaths, get_shared_lib_extension + from os.path import join, sep, dirname + + ajoin = lambda *paths: join(*((sep,)+paths)) +@@ -49,10 +51,25 @@ + def test_gpaths(self): + local_path = minrelpath(join(dirname(__file__),'..')) + ls = gpaths('command/*.py', local_path) +- assert join(local_path,'command','build_src.py') in ls,`ls` ++ assert join(local_path,'command','build_src.py') in ls,repr(ls) + f = gpaths('system_info.py', local_path) +- assert join(local_path,'system_info.py')==f[0],`f` ++ assert join(local_path,'system_info.py')==f[0],repr(f) + ++class TestSharedExtension(TestCase): ++ ++ def test_get_shared_lib_extension(self): ++ import sys ++ ext = get_shared_lib_extension(is_python_ext=False) ++ if sys.platform.startswith('linux'): ++ assert_equal(ext, '.so') ++ elif sys.platform.startswith('gnukfreebsd'): ++ assert_equal(ext, '.so') ++ elif sys.platform.startswith('darwin'): ++ assert_equal(ext, '.dylib') ++ elif sys.platform.startswith('win'): ++ assert_equal(ext, '.dll') ++ # just check for no crash ++ assert_(get_shared_lib_extension(is_python_ext=True)) + + if __name__ == "__main__": + run_module_suite() diff --git a/dev-python/numpy/files/numpy-1.6.2-test-pareto.patch b/dev-python/numpy/files/numpy-1.6.2-test-pareto.patch new file mode 100644 index 0000000..7d67b49 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.6.2-test-pareto.patch @@ -0,0 +1,45 @@ +From d01354e52d5c272522c09ffd733887500e4846d7 Mon Sep 17 00:00:00 2001 +From: "Nathaniel J. Smith" <njs@pobox.com> +Date: Fri, 7 Sep 2012 10:49:45 +0100 +Subject: [PATCH] FIX: loosen numerical tolerance in test_pareto() + +The problem was that in 32bit Ubuntu 12.04, one gets the following: + +> +/home/njs/numpy/.tox/py27/local/lib/python2.7/site-packages/numpy/random/tests/test_random.py(363)test_pareto() +-> np.testing.assert_array_almost_equal(actual, desired, decimal=15) +(Pdb) actual[1, 0] +52828779.702948704 +(Pdb) desired[1, 0] +52828779.702948518 + +and the test was comparing the numbers to 1e-14, which obviously +failed. + +Fixes #424. +--- + numpy/random/tests/test_random.py | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py +index 7d9163e..ee40cce 100644 +--- a/numpy/random/tests/test_random.py ++++ b/numpy/random/tests/test_random.py +@@ -310,7 +310,13 @@ def test_pareto(self): + desired = np.array([[ 2.46852460439034849e+03, 1.41286880810518346e+03], + [ 5.28287797029485181e+07, 6.57720981047328785e+07], + [ 1.40840323350391515e+02, 1.98390255135251704e+05]]) +- np.testing.assert_array_almost_equal(actual, desired, decimal=14) ++ # For some reason on 32-bit x86 Ubuntu 12.10 the [1, 0] entry in this ++ # matrix differs by 24 nulps. Discussion: ++ # http://mail.scipy.org/pipermail/numpy-discussion/2012-September/063801.html ++ # Consensus is that this is probably some gcc quirk that affects ++ # rounding but not in any important way, so we just use a looser ++ # tolerance on this test: ++ np.testing.assert_array_almost_equal_nulp(actual, desired, nulp=30) + + def test_poisson(self): + np.random.seed(self.seed) +-- +1.7.10 + diff --git a/dev-python/numpy/files/numpy-1.7.0-atlas.patch b/dev-python/numpy/files/numpy-1.7.0-atlas.patch new file mode 100644 index 0000000..b2936a9 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.7.0-atlas.patch @@ -0,0 +1,17 @@ +--- numpy/distutils/system_info.py.orig 2013-02-19 10:15:10.183780548 -0800 ++++ numpy/distutils/system_info.py 2013-02-19 10:17:03.565350549 -0800 +@@ -282,13 +282,7 @@ + 1 - display warning message + 2 - raise error + """ +- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead +- 'atlas_threads': atlas_threads_info, # ditto +- 'atlas_blas': atlas_blas_info, +- 'atlas_blas_threads': atlas_blas_threads_info, +- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead +- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto +- 'mkl': mkl_info, ++ cl = {'mkl': mkl_info, + 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead + 'blas_mkl': blas_mkl_info, # use blas_opt instead + 'x11': x11_info, diff --git a/dev-python/numpy/files/numpy-1.7.1-distutils-python33.patch b/dev-python/numpy/files/numpy-1.7.1-distutils-python33.patch new file mode 100644 index 0000000..879a755 --- /dev/null +++ b/dev-python/numpy/files/numpy-1.7.1-distutils-python33.patch @@ -0,0 +1,540 @@ +--- numpy/distutils/misc_util.py.orig 2013-04-06 22:04:05.000000000 -0700 ++++ numpy/distutils/misc_util.py 2013-08-27 11:11:50.970945380 -0700 +@@ -1,3 +1,5 @@ ++from __future__ import division, absolute_import, print_function ++ + import os + import re + import sys +@@ -165,7 +167,7 @@ + fid = open(config_file) + mathlibs = [] + s = '#define MATHLIB' +- for line in fid.readlines(): ++ for line in fid: + if line.startswith(s): + value = line[len(s):].strip() + if value: +@@ -218,8 +220,8 @@ + else: + if include_non_existing: + new_paths.append(n) +- print('could not resolve pattern in %r: %r' \ +- % (local_path,n)) ++ print('could not resolve pattern in %r: %r' % ++ (local_path,n)) + else: + n2 = njoin(local_path,n) + if os.path.exists(n2): +@@ -230,8 +232,8 @@ + elif include_non_existing: + new_paths.append(n) + if not os.path.exists(n): +- print('non-existing path in %r: %r' \ +- % (local_path,n)) ++ print('non-existing path in %r: %r' % ++ (local_path,n)) + + elif is_sequence(n): + new_paths.extend(_fix_paths(n,local_path,include_non_existing)) +@@ -249,11 +251,9 @@ + + _temporary_directory = None + def clean_up_temporary_directory(): +- from numpy.distutils import log + global _temporary_directory + if not _temporary_directory: + return +- log.debug('removing %s', _temporary_directory) + try: + shutil.rmtree(_temporary_directory) + except OSError: +@@ -394,8 +394,7 @@ + return [] + modules = [] + f = open(source,'r') +- f_readlines = getattr(f,'xreadlines',f.readlines) +- for line in f_readlines(): ++ for line in f: + m = f90_module_name_match(line) + if m: + name = m.group('name') +@@ -557,7 +556,7 @@ + def get_ext_source_files(ext): + # Get sources and any include files in the same directory. + filenames = [] +- sources = filter(is_string, ext.sources) ++ sources = [_m for _m in ext.sources if is_string(_m)] + filenames.extend(sources) + filenames.extend(get_dependencies(sources)) + for d in ext.depends: +@@ -568,13 +567,13 @@ + return filenames + + def get_script_files(scripts): +- scripts = filter(is_string, scripts) ++ scripts = [_m for _m in scripts if is_string(_m)] + return scripts + + def get_lib_source_files(lib): + filenames = [] + sources = lib[1].get('sources',[]) +- sources = filter(is_string, sources) ++ sources = [_m for _m in sources if is_string(_m)] + filenames.extend(sources) + filenames.extend(get_dependencies(sources)) + depends = lib[1].get('depends',[]) +@@ -606,11 +605,29 @@ + Linux, but not on OS X. + + """ +- so_ext = distutils.sysconfig.get_config_var('SO') or '' +- # fix long extension for Python >=3.2, see PEP 3149. +- if (not is_python_ext) and 'SOABI' in distutils.sysconfig.get_config_vars(): +- # Does nothing unless SOABI config var exists +- so_ext = so_ext.replace('.' + distutils.sysconfig.get_config_var('SOABI'), '', 1) ++ confvars = distutils.sysconfig.get_config_vars() ++ # SO is deprecated in 3.3.1, use EXT_SUFFIX instead ++ so_ext = confvars.get('EXT_SUFFIX', None) ++ if so_ext is None: ++ so_ext = confvars.get('SO', '') ++ ++ if not is_python_ext: ++ # hardcode known values, config vars (including SHLIB_SUFFIX) are ++ # unreliable (see #3182) ++ # darwin, windows and debug linux are wrong in 3.3.1 and older ++ if (sys.platform.startswith('linux') or ++ sys.platform.startswith('gnukfreebsd')): ++ so_ext = '.so' ++ elif sys.platform.startswith('darwin'): ++ so_ext = '.dylib' ++ elif sys.platform.startswith('win'): ++ so_ext = '.dll' ++ else: ++ # fall back to config vars for unknown platforms ++ # fix long extension for Python >=3.2, see PEP 3149. ++ if 'SOABI' in confvars: ++ # Does nothing unless SOABI config var exists ++ so_ext = so_ext.replace('.' + confvars.get('SOABI'), '', 1) + + return so_ext + +@@ -628,7 +645,7 @@ + if os.path.isfile(s): + filenames.append(s) + else: +- print('Not existing data file:',s) ++ print('Not existing data file:', s) + else: + raise TypeError(repr(s)) + return filenames +@@ -647,56 +664,13 @@ + frame = frame.f_back + return frame + +-class SconsInfo(object): +- """ +- Container object holding build info for building a package with scons. +- +- Parameters +- ---------- +- scons_path : str or None +- Path to scons script, relative to the directory of setup.py. +- If None, no scons script is specified. This can be useful to add only +- pre- and post-hooks to a configuration. +- parent_name : str or None +- Name of the parent package (for example "numpy"). +- pre_hook : sequence of callables or None +- Callables that are executed before scons is invoked. +- Each callable should be defined as ``callable(*args, **kw)``. +- post_hook : sequence of callables or None +- Callables that are executed after scons is invoked. +- Each callable should be defined as ``callable(*args, **kw)``. +- source_files : list of str or None +- List of paths to source files, relative to the directory of setup.py. +- pkg_path : str or None +- Path to the package for which the `SconsInfo` instance holds the +- build info, relative to the directory of setup.py. +- +- Notes +- ----- +- All parameters are available as attributes of a `SconsInfo` instance. +- +- """ +- def __init__(self, scons_path, parent_name, pre_hook, +- post_hook, source_files, pkg_path): +- self.scons_path = scons_path +- self.parent_name = parent_name +- self.pre_hook = pre_hook +- self.post_hook = post_hook +- self.source_files = source_files +- if pkg_path: +- self.pkg_path = pkg_path +- else: +- if scons_path: +- self.pkg_path = os.path.dirname(scons_path) +- else: +- self.pkg_path = '' + + ###################### + + class Configuration(object): + + _list_keys = ['packages', 'ext_modules', 'data_files', 'include_dirs', +- 'libraries', 'headers', 'scripts', 'py_modules', 'scons_data', ++ 'libraries', 'headers', 'scripts', 'py_modules', + 'installed_libraries'] + _dict_keys = ['package_dir', 'installed_pkg_config'] + _extra_keys = ['name', 'version'] +@@ -853,7 +827,7 @@ + caller_level = 1): + l = subpackage_name.split('.') + subpackage_path = njoin([self.local_path]+l) +- dirs = filter(os.path.isdir,glob.glob(subpackage_path)) ++ dirs = [_m for _m in glob.glob(subpackage_path) if os.path.isdir(_m)] + config_list = [] + for d in dirs: + if not os.path.isfile(njoin(d,'__init__.py')): +@@ -895,7 +869,7 @@ + pn = dot_join(*([parent_name] + subpackage_name.split('.')[:-1])) + args = (pn,) + def fix_args_py2(args): +- if setup_module.configuration.func_code.co_argcount > 1: ++ if setup_module.configuration.__code__.co_argcount > 1: + args = args + (self.top_path,) + return args + def fix_args_py3(args): +@@ -922,14 +896,14 @@ + + Parameters + ---------- +- subpackage_name: str,None ++ subpackage_name : str or None + Name of the subpackage to get the configuration. '*' in + subpackage_name is handled as a wildcard. +- subpackage_path: str ++ subpackage_path : str + If None, then the path is assumed to be the local path plus the + subpackage_name. If a setup.py file is not found in the + subpackage_path, then a default configuration is used. +- parent_name: str ++ parent_name : str + Parent name. + """ + if subpackage_name is None: +@@ -985,13 +959,13 @@ + + Parameters + ---------- +- subpackage_name: str ++ subpackage_name : str + name of the subpackage +- subpackage_path: str ++ subpackage_path : str + if given, the subpackage path such as the subpackage is in + subpackage_path / subpackage_name. If None,the subpackage is + assumed to be located in the local path / subpackage_name. +- standalone: bool ++ standalone : bool + """ + + if standalone: +@@ -1029,10 +1003,10 @@ + + Parameters + ---------- +- data_path: seq,str ++ data_path : seq or str + Argument can be either + +- * 2-sequence (<datadir suffix>,<path to data directory>) ++ * 2-sequence (<datadir suffix>, <path to data directory>) + * path to data directory where python datadir suffix defaults + to package dir. + +@@ -1091,14 +1065,14 @@ + pattern_list = allpath(d).split(os.sep) + pattern_list.reverse() + # /a/*//b/ -> /a/*/b +- rl = range(len(pattern_list)-1); rl.reverse() ++ rl = list(range(len(pattern_list)-1)); rl.reverse() + for i in rl: + if not pattern_list[i]: + del pattern_list[i] + # + for path in paths: + if not os.path.isdir(path): +- print('Not a directory, skipping',path) ++ print('Not a directory, skipping', path) + continue + rpath = rel_path(path, self.local_path) + path_list = rpath.split(os.sep) +@@ -1151,7 +1125,7 @@ + + Parameters + ---------- +- files: sequence ++ files : sequence + Argument(s) can be either + + * 2-sequence (<datadir prefix>,<path to data file(s)>) +@@ -1330,7 +1304,7 @@ + + Parameters + ---------- +- files: str, seq ++ files : str or seq + Argument(s) can be either: + + * 2-sequence (<includedir suffix>,<path to header file(s)>) +@@ -1385,9 +1359,9 @@ + + Parameters + ---------- +- name: str ++ name : str + name of the extension +- sources: seq ++ sources : seq + list of the sources. The list of sources may contain functions + (called source generators) which must take an extension instance + and a build directory as inputs and return a source file or list of +@@ -1395,28 +1369,28 @@ + generated. If the Extension instance has no sources after + processing all source generators, then no extension module is + built. +- include_dirs: +- define_macros: +- undef_macros: +- library_dirs: +- libraries: +- runtime_library_dirs: +- extra_objects: +- extra_compile_args: +- extra_link_args: +- extra_f77_compile_args: +- extra_f90_compile_args: +- export_symbols: +- swig_opts: +- depends: ++ include_dirs : ++ define_macros : ++ undef_macros : ++ library_dirs : ++ libraries : ++ runtime_library_dirs : ++ extra_objects : ++ extra_compile_args : ++ extra_link_args : ++ extra_f77_compile_args : ++ extra_f90_compile_args : ++ export_symbols : ++ swig_opts : ++ depends : + The depends list contains paths to files or directories that the + sources of the extension module depend on. If any path in the + depends list is newer than the extension module, then the module + will be rebuilt. +- language: +- f2py_options: +- module_dirs: +- extra_info: dict,list ++ language : ++ f2py_options : ++ module_dirs : ++ extra_info : dict or list + dict or list of dict of keywords to be appended to keywords. + + Notes +@@ -1653,65 +1627,6 @@ + self.installed_pkg_config[self.name] = [(template, install_dir, + subst_dict)] + +- def add_scons_installed_library(self, name, install_dir): +- """ +- Add a scons-built installable library to distutils. +- +- Parameters +- ---------- +- name : str +- The name of the library. +- install_dir : str +- Path to install the library, relative to the current sub-package. +- +- """ +- install_dir = os.path.join(self.package_path, install_dir) +- self.installed_libraries.append(InstallableLib(name, {}, install_dir)) +- +- def add_sconscript(self, sconscript, subpackage_path=None, +- standalone = False, pre_hook = None, +- post_hook = None, source_files = None, package_path=None): +- """Add a sconscript to configuration. +- +- pre_hook and post hook should be sequences of callable, which will be +- use before and after executing scons. The callable should be defined as +- callable(*args, **kw). It is ugly, but well, hooks are ugly anyway... +- +- sconscript can be None, which can be useful to add only post/pre +- hooks.""" +- if standalone: +- parent_name = None +- else: +- parent_name = self.name +- +- dist = self.get_distribution() +- # Convert the sconscript name to a relative filename (relative from top +- # setup.py's directory) +- fullsconsname = self.paths(sconscript)[0] +- +- # XXX: Think about a way to automatically register source files from +- # scons... +- full_source_files = [] +- if source_files: +- full_source_files.extend([self.paths(i)[0] for i in source_files]) +- +- scons_info = SconsInfo(fullsconsname, parent_name, +- pre_hook, post_hook, +- full_source_files, package_path) +- if dist is not None: +- if dist.scons_data is None: +- dist.scons_data = [] +- dist.scons_data.append(scons_info) +- self.warn('distutils distribution has been initialized,'\ +- ' it may be too late to add a subpackage '+ subpackage_name) +- # XXX: we add a fake extension, to correctly initialize some +- # options in distutils command. +- dist.add_extension('', sources = []) +- else: +- self.scons_data.append(scons_info) +- # XXX: we add a fake extension, to correctly initialize some +- # options in distutils command. +- self.add_extension('', sources = []) + + def add_scripts(self,*files): + """Add scripts to configuration. +@@ -2086,11 +2001,6 @@ + """ + self.py_modules.append((self.name,name,generate_config_py)) + +- def scons_make_config_py(self, name = '__config__'): +- """Generate package __config__.py file containing system_info +- information used during building the package. +- """ +- self.py_modules.append((self.name, name, scons_generate_config_py)) + + def get_info(self,*names): + """Get resources information. +@@ -2098,7 +2008,7 @@ + Return information (from system_info.get_info) for all of the names in + the argument list in a single dictionary. + """ +- from system_info import get_info, dict_append ++ from .system_info import get_info, dict_append + info_dict = {} + for a in names: + dict_append(info_dict,**get_info(a)) +@@ -2233,57 +2143,18 @@ + return info + + def is_bootstrapping(): +- import __builtin__ ++ if sys.version_info[0] >= 3: ++ import builtins ++ else: ++ import __builtin__ as builtins ++ + try: +- __builtin__.__NUMPY_SETUP__ ++ builtins.__NUMPY_SETUP__ + return True + except AttributeError: + return False + __NUMPY_SETUP__ = False + +-def scons_generate_config_py(target): +- """generate config.py file containing system_info information +- used during building the package. +- +- usage: +- config['py_modules'].append((packagename, '__config__',generate_config_py)) +- """ +- from distutils.dir_util import mkpath +- from numscons import get_scons_configres_dir, get_scons_configres_filename +- d = {} +- mkpath(os.path.dirname(target)) +- f = open(target, 'w') +- f.write('# this file is generated by %s\n' % (os.path.abspath(sys.argv[0]))) +- f.write('# it contains system_info results at the time of building this package.\n') +- f.write('__all__ = ["show"]\n\n') +- confdir = get_scons_configres_dir() +- confilename = get_scons_configres_filename() +- for root, dirs, files in os.walk(confdir): +- if files: +- file = os.path.join(root, confilename) +- assert root.startswith(confdir) +- pkg_name = '.'.join(root[len(confdir)+1:].split(os.sep)) +- fid = open(file, 'r') +- try: +- cnt = fid.read() +- d[pkg_name] = eval(cnt) +- finally: +- fid.close() +- # d is a dictionary whose keys are package names, and values the +- # corresponding configuration. Each configuration is itself a dictionary +- # (lib : libinfo) +- f.write('_config = %s\n' % d) +- f.write(r''' +-def show(): +- for pkg, config in _config.items(): +- print("package %s configuration:" % pkg) +- for lib, libc in config.items(): +- print(' %s' % lib) +- for line in libc.split('\n'): +- print('\t%s' % line) +- ''') +- f.close() +- return target + + ######################### + +--- numpy/distutils/tests/test_misc_util.py.orig 2013-04-06 22:04:05.000000000 -0700 ++++ numpy/distutils/tests/test_misc_util.py 2013-08-27 11:14:23.438843136 -0700 +@@ -1,7 +1,9 @@ + #!/usr/bin/env python ++from __future__ import division, absolute_import, print_function + + from numpy.testing import * +-from numpy.distutils.misc_util import appendpath, minrelpath, gpaths, rel_path ++from numpy.distutils.misc_util import appendpath, minrelpath, \ ++ gpaths, get_shared_lib_extension + from os.path import join, sep, dirname + + ajoin = lambda *paths: join(*((sep,)+paths)) +@@ -49,10 +51,25 @@ + def test_gpaths(self): + local_path = minrelpath(join(dirname(__file__),'..')) + ls = gpaths('command/*.py', local_path) +- assert_(join(local_path,'command','build_src.py') in ls,`ls`) ++ assert_(join(local_path,'command','build_src.py') in ls,repr(ls)) + f = gpaths('system_info.py', local_path) +- assert_(join(local_path,'system_info.py')==f[0],`f`) ++ assert_(join(local_path,'system_info.py')==f[0],repr(f)) + ++class TestSharedExtension(TestCase): ++ ++ def test_get_shared_lib_extension(self): ++ import sys ++ ext = get_shared_lib_extension(is_python_ext=False) ++ if sys.platform.startswith('linux'): ++ assert_equal(ext, '.so') ++ elif sys.platform.startswith('gnukfreebsd'): ++ assert_equal(ext, '.so') ++ elif sys.platform.startswith('darwin'): ++ assert_equal(ext, '.dylib') ++ elif sys.platform.startswith('win'): ++ assert_equal(ext, '.dll') ++ # just check for no crash ++ assert_(get_shared_lib_extension(is_python_ext=True)) + + if __name__ == "__main__": + run_module_suite() diff --git a/dev-python/numpy/files/numpy-1.8.0-no-hardcode-blas.patch b/dev-python/numpy/files/numpy-1.8.0-no-hardcode-blas.patch new file mode 100644 index 0000000..eaf30dd --- /dev/null +++ b/dev-python/numpy/files/numpy-1.8.0-no-hardcode-blas.patch @@ -0,0 +1,25 @@ +patch to allow any blas (c or f77) to simulate the +special treatment atlas libs have in numpy. +2013: numpy.distutils still horrendous code + +--- numpy/distutils/system_info.py.orig 2013-11-25 19:54:45.760217851 -0800 ++++ numpy/distutils/system_info.py 2013-11-25 20:00:26.575310888 -0800 +@@ -293,17 +293,7 @@ + 1 - display warning message + 2 - raise error + """ +- cl = {'atlas': atlas_info, # use lapack_opt or blas_opt instead +- 'atlas_threads': atlas_threads_info, # ditto +- 'atlas_blas': atlas_blas_info, +- 'atlas_blas_threads': atlas_blas_threads_info, +- 'lapack_atlas': lapack_atlas_info, # use lapack_opt instead +- 'lapack_atlas_threads': lapack_atlas_threads_info, # ditto +- 'mkl': mkl_info, +- 'openblas': openblas_info, # use blas_opt instead +- 'lapack_mkl': lapack_mkl_info, # use lapack_opt instead +- 'blas_mkl': blas_mkl_info, # use blas_opt instead +- 'x11': x11_info, ++ cl = {'x11': x11_info, + 'fft_opt': fft_opt_info, + 'fftw': fftw_info, + 'fftw2': fftw2_info, diff --git a/dev-python/numpy/metadata.xml b/dev-python/numpy/metadata.xml new file mode 100644 index 0000000..bb330b7 --- /dev/null +++ b/dev-python/numpy/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<herd>python</herd> +<longdescription lang="en"> + NumPy is a general-purpose array-processing Python package designed to + efficiently manipulate large multi-dimensional arrays of arbitrary + records without sacrificing too much speed for small multi-dimensional + arrays. There are also basic facilities for discrete fourier transform, + basic linear algebra and random number generation. + It is the successor of Numeric and numarray. +</longdescription> +<upstream> + <remote-id type="pypi">numpy</remote-id> +</upstream> +</pkgmetadata> diff --git a/dev-python/numpy/numpy-1.8.0-r1.ebuild b/dev-python/numpy/numpy-1.8.0-r1.ebuild new file mode 100644 index 0000000..5470614 --- /dev/null +++ b/dev-python/numpy/numpy-1.8.0-r1.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) + +FORTRAN_NEEDED=lapack + +inherit distutils-r1 eutils flag-o-matic fortran-2 multilib toolchain-funcs versionator + +DOC_PV="${PV}" + +DESCRIPTION="Fast array and numerical python library" +HOMEPAGE="http://numpy.scipy.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + doc? ( + http://docs.scipy.org/doc/${P}/${PN}-html-${DOC_PV}.zip + http://docs.scipy.org/doc/${P}/${PN}-ref-${DOC_PV}.pdf + http://docs.scipy.org/doc/${P}/${PN}-user-${DOC_PV}.pdf + )" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="doc lapack test" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + lapack? ( virtual/cblas virtual/lapack )" +DEPEND="${RDEPEND} + doc? ( app-arch/unzip ) + lapack? ( virtual/pkgconfig ) + test? ( >=dev-python/nose-0.10[${PYTHON_USEDEP}] )" + +# Uses distutils.command.config. +DISTUTILS_IN_SOURCE_BUILD=1 + +src_unpack() { + unpack ${P}.tar.gz + if use doc; then + unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die + fi +} + +pc_incdir() { + $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ + sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' +} + +pc_libdir() { + $(tc-getPKG_CONFIG) --libs-only-L $@ | \ + sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' +} + +pc_libs() { + $(tc-getPKG_CONFIG) --libs-only-l $@ | \ + sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ + -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ + | sort | uniq | tr '\n' ',' +} + +python_prepare_all() { + epatch "${FILESDIR}"/${PN}-1.8.0-no-hardcode-blas.patch + + if use lapack; then + append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)" + local libdir="${EPREFIX}"/usr/$(get_libdir) + # make sure _dotblas.so gets built + sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die + cat >> site.cfg <<-EOF + [blas] + include_dirs = $(pc_incdir cblas) + library_dirs = $(pc_libdir cblas blas):${libdir} + blas_libs = $(pc_libs cblas blas) + [lapack] + library_dirs = $(pc_libdir lapack):${libdir} + lapack_libs = $(pc_libs lapack) + EOF + else + export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None + fi + + export CC="$(tc-getCC) ${CFLAGS}" + + append-flags -fno-strict-aliasing + + # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 + # with the subtle difference that we don't want to break Darwin where + # -shared is not a valid linker argument + if [[ ${CHOST} != *-darwin* ]]; then + append-ldflags -shared + fi + + # only one fortran to link with: + # linking with cblas and lapack library will force + # autodetecting and linking to all available fortran compilers + if use lapack; then + append-fflags -fPIC + NUMPY_FCONFIG="config_fc --noopt --noarch" + # workaround bug 335908 + [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" + fi + + # don't version f2py, we will handle it. + sed -i -e '/f2py_exe/s:+os\.path.*$::' numpy/f2py/setup.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile ${NUMPY_FCONFIG} +} + +python_test() { + distutils_install_for_testing ${NUMPY_FCONFIG} + + cd "${TMPDIR}" || die + ${EPYTHON} -c " +import numpy, sys +r = numpy.test(verbose=3) +sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install ${NUMPY_FCONFIG} +} + +python_install_all() { + distutils-r1_python_install_all + + dodoc COMPATIBILITY DEV_README.txt THANKS.txt + + docinto f2py + dodoc numpy/f2py/docs/*.txt + doman numpy/f2py/f2py.1 + + if use doc; then + dohtml -r "${WORKDIR}"/html/* + insinto /usr/share/doc/${PF} + doins "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf + fi +} |