commit: 68aeb905a310ee748d1f26d117d9d0987ecae6a9 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Fri Jan 3 20:40:38 2020 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Fri Jan 3 20:40:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68aeb905
sci-libs/scipy: Remove old Closes: https://github.com/gentoo/gentoo/pull/14188 Package-Manager: Portage-2.3.83, Repoman-2.3.20 Signed-off-by: David Seifert <soap <AT> gentoo.org> sci-libs/scipy/Manifest | 12 -- sci-libs/scipy/files/scipy-0.12.0-blitz.patch | 28 ---- .../files/scipy-0.12.0-restore-sys-argv.patch | 15 --- .../files/scipy-0.16.1-glibc-2.22-backport.patch | 30 ----- sci-libs/scipy/scipy-0.16.1.ebuild | 149 --------------------- sci-libs/scipy/scipy-0.18.1.ebuild | 147 -------------------- sci-libs/scipy/scipy-0.19.1.ebuild | 143 -------------------- sci-libs/scipy/scipy-1.0.0.ebuild | 142 -------------------- 8 files changed, 666 deletions(-) diff --git a/sci-libs/scipy/Manifest b/sci-libs/scipy/Manifest index 755da305b08..e77eff00229 100644 --- a/sci-libs/scipy/Manifest +++ b/sci-libs/scipy/Manifest @@ -1,15 +1,3 @@ -DIST scipy-0.16.1-html.zip 33158474 BLAKE2B dfeac8456ea328f293a28c379e3723f8a2fa2e5c47fc2771902083fb89764df9041f71c2ee656fc4c9a00017367f5e4726c798d309f8c2c50dd020c0fd93d168 SHA512 47b1ebd43b58ada7f4fd772e2a94c25d8ee2b03d808743ac386c7fbcc8a1daa3082906156ba421b1dd91ce2fb4f0114639ea124caac7522d919507029fee6c1a -DIST scipy-0.16.1-ref.pdf 33916573 BLAKE2B 8bb2fbb592168c1233fa0e464cd8ded7ab05f4ab9b27ed54e45a71f1902ea4378ad6099cdbce633364372dfa6c0525f906cff7fab3d38d62f9d8c8b698d96fd9 SHA512 eaf7221c2dcb2cf0bcddcaf6064e52f3d1542edaf0238fa96ae62e27911b275a3bc7ee624fe655b0abd00055312f18582d49cafdccf339f7c38aa93ca5badea9 -DIST scipy-0.16.1.tar.gz 12221561 BLAKE2B 8181330d7e83c75ee3e3b88cdc7736fdedbf0eb410fc237a3aa0d45bc5919d79d2bec8876351dee9c331016371becf6a6a1a0b419e50739e717125334d5512bd SHA512 1761a943a0629179fd546fe3754b16101ca86b98eb0539b73614ea65bce24055ca898f295683eb3f3f63402ebbbb9248aa2a9f6a1d7d6cdf5e1e7486b15c1a8b -DIST scipy-0.18.1-html.zip 32907714 BLAKE2B e1e32d4472f8bb3064e732689cdbe7055a441e7dea38a0fff37458e4530b841db969fdcad92967d9ee2bc37120ed7dae238365d566363ec6b86a188b6cb2a746 SHA512 fc61ce9a9dcc7091da29d35a42cc38074b0c4f5ff81d5ca5dea9c2d32e5e3ee1e8463fcb4e18c931c0c0e4f00410f8cd16d0f81c219fb326edc20d2286866e03 -DIST scipy-0.18.1-ref.pdf 14824115 BLAKE2B 94ecf2332925adba1f40fbf303a5ec6ecddfb5ab30d25f038945e6c2328cee2e5182f4a8214bd49e7f4cc5af2fa5d6e70b7f6248cbc7964ed38c5479914ce17f SHA512 e668420ae3668f459d15cb88765045c89df02f9c73854c8ddce8fe1611973e8c9d40ac49a1db0342282074b1d46b8156bb75430b7df079efd1c3a6ccb4bf2c37 -DIST scipy-0.18.1.tar.gz 13141689 BLAKE2B b761c2543e962eb04cc9c9651e6c95612e421393a2b3d519a52fbb3dd0f7583972004632429ddbe9ea007248908c937b26050a0579f45472978b2f3629a27c67 SHA512 f2ee21c808141d8002f69e48e7cf006e36982b1a7041323a8f4d803a1de3d191ffcc40227aac351dd876c28843de366ef89e9cf84dc106fadac86a3f40491659 -DIST scipy-0.19.1-html.zip 38201310 BLAKE2B 28ba5538ecfb1a8a6b7676a2b427a320d3fd6e76f591203d25451e4de8e2534ef3bfaee960322d427774459319da3098c70bf69b176641a75eb64e17a53d5690 SHA512 7eecef83a92aa99a726a8839e2cdac1171129ba0efcaf8e36b07d6714fde20cce9ce9f676be6b4835845930c49f740cb11ce0d93012d0b8c990e7061bb3afbcc -DIST scipy-0.19.1-ref.pdf 17530855 BLAKE2B a0b0011ded7ee1f6bf9944b0c6d474581b64debb192277ebf142ebcc297f8e2f52412a4a8bfb7e618984c0c32233e2a6346d9795565276e08f00be5e782da04f SHA512 79718fde0aedb4c9906b37f2d75878719b614268160e645ad69ea797d6baeecaff9153884171906e6b7673b65da997ff4fd245e0f42ab766497ee9c96f4f9fd2 -DIST scipy-0.19.1.tar.gz 14083805 BLAKE2B 65369ffec2726a8e16da2d6852a71965277b8d4637316a375122e5b6cbf0e05cdcbd3304bcd14ca0b9b6677620a27c0fed6d4924eb8b1726c22ec0ec663feeac SHA512 5c124c44c672dcb53c31f8592fd9f74189f04cb0bade99476a2a6eb4844338e3e9842f27a148b007b7eed25cbfde090a697575a381ebe4ca066abdf54c214203 -DIST scipy-1.0.0-html.zip 47873725 BLAKE2B 0c6c1070e46e644c9e5700a116e700a0ce8d69c1cfaa0ae63ae34af8844db83a7b61c5d072c54bdc23ef7016440ec6d378a45965778c0e8078113bf1a54bade3 SHA512 15d5726ad527bbe3e3e1579d5d2f6031393a2eca8e27adc6f78b16697e9dd67633407a160f461d7a18a8b8bde83201ccf363cdda8f9ca3531b6d6ec1491e0f14 -DIST scipy-1.0.0-ref.pdf 31394378 BLAKE2B bc8e590509cfb4bfda9deab40bbc6ebc919e39cb03a5817040ad2e9bbdfd0acc1a1dc194a88ac890a9052b6ddb3bb7b39292d08d925e3d1eb310605ca0589450 SHA512 657ef3c643ab61a8452dd85982018eb2210cd1531edd152c9b1c3d8c722f8a45ab1efd03f5bbb3c763a75e70e6d39036a845869ec5135f2aa0445480a074f3e0 -DIST scipy-1.0.0.tar.gz 15246397 BLAKE2B 37cd50c59830c91f0516c72cf11b367670faf5c1fe3fd3cf37bc6f30a4b1f44f7b1d124ff7097c3dcb8c32c3876e166ab1caaa3991a637df5f61bb26b0f52c3f SHA512 7d55c5660ac606933d517171a229b288fd0ea8d9fdd8e30fac3d294545a26b2700c7b100b014a93231c4122dee0f1ddd741c00f5902643a6ccc287cdf581da7a DIST scipy-1.1.0-html.zip 49851258 BLAKE2B 528df7ed8aa8e56662f436f31ee9e1d6d72d6fe962f9f0f6f84b7a2704b53009ce333b2102ec73bb7795110f8a61b18246aab95b1e21055f2b68c0ff2225b7bb SHA512 a03894a22a67c1359ee6206e9e1c9de1f926a7f829f5039f161e78df735708da09b0e51cdad3bf36bfede701d0bc5dc44f8cc0f249b6bfb80c9d8c9fe23aed46 DIST scipy-1.1.0-ref.pdf 34360806 BLAKE2B f82807879d5d36d91d74e8983a0f4104bcb4b69cb7787fe5190f73fbbfcb8635a9399686b3c75736d3b0b5dd877b5280ff6fba728520e3b47c13ffc7835f8cd6 SHA512 c792064c986dffafa3c5d0741f30715028e655761d099f0fdd472270cf34642b367dfa2178ddceba13043a471e3aeb1db20d65308dbb40c704dab576aaadeb3e DIST scipy-1.1.0.tar.gz 15583560 BLAKE2B 477753e622ee26a3bc8c2cb6829410152df84b29ce17a6d53a66348f5536f7993fedf5d32b782405b54b3af3feabf9bc91c381ed39546076849c2fdb71039404 SHA512 72fe32c6c009613cb78202598e5db14f8e630b3218839cfe18d43d40550d94cc5aa100c6f5d41f40e86ae148e9b6a13431bb91b0f9be44b0569ccd7b725fe973 diff --git a/sci-libs/scipy/files/scipy-0.12.0-blitz.patch b/sci-libs/scipy/files/scipy-0.12.0-blitz.patch deleted file mode 100644 index 2817aa39b87..00000000000 --- a/sci-libs/scipy/files/scipy-0.12.0-blitz.patch +++ /dev/null @@ -1,28 +0,0 @@ -Description: Fixes scipy.weave.inline compalition with g++ 4.3 and upwards -Author: Sameer Morar <smo...@gmail.com> -Forwarded: http://projects.scipy.org/scipy/scipy/ticket/739 -Bug-Debian: http://bugs.debian.org/598520 -Bug-Ubuntu: https://launchpad.net/bugs/302649 - ---- a/scipy/weave/blitz/blitz/blitz.h -+++ b/scipy/weave/blitz/blitz/blitz.h -@@ -65,6 +65,8 @@ - - #define BZ_THROW // Needed in <blitz/numinquire.h> - -+#include <cstdlib> -+ - BZ_NAMESPACE(blitz) - - #ifdef BZ_HAVE_STD ---- a/scipy/weave/blitz/blitz/prettyprint.h -+++ b/scipy/weave/blitz/blitz/prettyprint.h -@@ -22,6 +22,8 @@ - #ifndef BZ_PRETTYPRINT_H - #define BZ_PRETTYPRINT_H - -+#include <cstdlib> -+ - BZ_NAMESPACE(blitz) - - class prettyPrintFormat { diff --git a/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch b/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch deleted file mode 100644 index 3eef739f93a..00000000000 --- a/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch +++ /dev/null @@ -1,15 +0,0 @@ -Description: restore sys.argv in case of exception -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814 - ---- a/scipy/weave/build_tools.py -+++ b/scipy/weave/build_tools.py -@@ -283,6 +283,9 @@ def build_extension(module_path,compiler - configure_python_path(build_dir) - except SyntaxError: #TypeError: - success = 0 -+ except Exception, e: -+ restore_sys_argv() -+ raise e - - # restore argv after our trick... - restore_sys_argv() diff --git a/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch b/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch deleted file mode 100644 index 791d67f3253..00000000000 --- a/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 1f5ccd5447ed2796bb8e9506cfbfdb4a82cccfc0 Mon Sep 17 00:00:00 2001 -From: Ralf Gommers <ralf.gomm...@gmail.com> -Date: Sat, 24 Oct 2015 18:17:04 +0200 -Subject: [PATCH] TST: fix issue with a ctypes test for integrate on Fedora. - Closes gh-5370 - ---- - scipy/integrate/tests/test_quadpack.py | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/scipy/integrate/tests/test_quadpack.py b/scipy/integrate/tests/test_quadpack.py -index c3a417c..f384c77 100644 ---- a/scipy/integrate/tests/test_quadpack.py -+++ b/scipy/integrate/tests/test_quadpack.py -@@ -42,7 +42,14 @@ def setUp(self): - file = 'libm.dylib' - else: - file = 'libm.so' -- self.lib = ctypes.CDLL(file) -+ -+ try: -+ self.lib = ctypes.CDLL(file) -+ except OSError: -+ # This test doesn't work on some Linux platforms (Fedora for -+ # example) that put an ld script in libm.so - see gh-5370 -+ self.skipTest("Ctypes can't import libm.so") -+ - restype = ctypes.c_double - argtypes = (ctypes.c_double,) - for name in ['sin', 'cos', 'tan']: diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild b/sci-libs/scipy/scipy-0.16.1.ebuild deleted file mode 100644 index f105dde30c6..00000000000 --- a/sci-libs/scipy/scipy-0.16.1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 python3_{5,6} ) -PYTHON_REQ_USE="threads(+)" - -DOC_PV=${PV} - -inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs - -DESCRIPTION="Scientific algorithms library for Python" -HOMEPAGE="https://www.scipy.org/" -SRC_URI=" - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - doc? ( - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf - )" - -LICENSE="BSD LGPL-2" -SLOT="0" -IUSE="doc sparse test" -RESTRICT="!test? ( test )" -KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" - -CDEPEND=" - >=dev-python/numpy-1.6.2[lapack,${PYTHON_USEDEP}] - sci-libs/arpack:0= - virtual/cblas - virtual/lapack - sparse? ( sci-libs/umfpack:0= )" -DEPEND="${CDEPEND} - dev-lang/swig - >=dev-python/cython-0.22[${PYTHON_USEDEP}] - virtual/pkgconfig - doc? ( app-arch/unzip ) - test? ( dev-python/nose[${PYTHON_USEDEP}] ) - " - -RDEPEND="${CDEPEND} - dev-python/pillow[${PYTHON_USEDEP}]" - -DOCS=( HACKING.rst.txt THANKS.txt ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -src_unpack() { - unpack ${P}.tar.gz - if use doc; then - unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die - fi -} - -pc_incdir() { - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' -} - -pc_libdir() { - $(tc-getPKG_CONFIG) --libs-only-L $@ | \ - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -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/[ ]*$//' \ - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' -} - -python_prepare_all() { - # scipy automatically detects libraries by default - export {FFTW,FFTW3,UMFPACK}=None - use sparse && unset UMFPACK - # the missing symbols are in -lpythonX.Y, but since the version can - # differ, we just introduce the same scaryness as on Linux/ELF - [[ ${CHOST} == *-darwin* ]] \ - && append-ldflags -bundle "-undefined dynamic_lookup" \ - || append-ldflags -shared - [[ -z ${FC} ]] && export FC="$(tc-getFC)" - # hack to force F77 to be FC until bug #278772 is fixed - [[ -z ${F77} ]] && export F77="$(tc-getFC)" - export F90="${FC}" - export SCIPY_FCONFIG="config_fc --noopt --noarch" - append-fflags -fPIC - - local libdir="${EPREFIX}"/usr/$(get_libdir) - 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 - - # Drop hashes to force rebuild of cython based .c code - rm cythonize.dat || die - - local PATCHES=( - "${FILESDIR}"/${PN}-0.12.0-blitz.patch - "${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch - "${FILESDIR}"/${P}-glibc-2.22-backport.patch - ) - distutils-r1_python_prepare_all -} - -python_compile() { - ${EPYTHON} tools/cythonize.py || die - distutils-r1_python_compile ${SCIPY_FCONFIG} -} - -python_test() { - # fails with bdist_egg. should it be fixed in distutils-r1 eclass? - distutils_install_for_testing ${SCIPY_FCONFIG} - cd "${TEST_DIR}" || die "no ${TEST_DIR} available" - "${PYTHON}" -c \ - 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ - || die - # https://github.com/scipy/scipy/issues/5426 - "${EPYTHON}" -c \ - "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ - || die "Tests fail with ${EPYTHON}" -# "${EPYTHON}" -c \ -# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ -# || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - if use doc; then - dodoc "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf - docinto html - dodoc -r "${WORKDIR}"/html/. - fi - distutils-r1_python_install_all -} - -python_install() { - distutils-r1_python_install ${SCIPY_FCONFIG} -} - -pkg_postinst() { - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" - elog "to your prefered image viewer. Example:" - elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" -} diff --git a/sci-libs/scipy/scipy-0.18.1.ebuild b/sci-libs/scipy/scipy-0.18.1.ebuild deleted file mode 100644 index 730b436320c..00000000000 --- a/sci-libs/scipy/scipy-0.18.1.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{5,6} ) -PYTHON_REQ_USE="threads(+)" - -DOC_PV=${PV} - -inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs - -DESCRIPTION="Scientific algorithms library for Python" -HOMEPAGE="https://www.scipy.org/" -SRC_URI=" - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - doc? ( - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf - )" - -LICENSE="BSD LGPL-2" -SLOT="0" -IUSE="doc sparse test" -RESTRICT="!test? ( test )" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" - -CDEPEND=" - >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] - sci-libs/arpack:0= - virtual/cblas - virtual/lapack - sparse? ( sci-libs/umfpack:0= )" -DEPEND="${CDEPEND} - dev-lang/swig - >=dev-python/cython-0.22[${PYTHON_USEDEP}] - virtual/pkgconfig - doc? ( app-arch/unzip ) - test? ( dev-python/nose[${PYTHON_USEDEP}] )" -RDEPEND="${CDEPEND} - dev-python/pillow[${PYTHON_USEDEP}]" - -DOCS=( HACKING.rst.txt THANKS.txt ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -PATCHES=( - "${FILESDIR}"/${PN}-0.12.0-blitz.patch - "${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch -) - -src_unpack() { - default - if use doc; then - unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die - fi -} - -pc_incdir() { - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' -} - -pc_libdir() { - $(tc-getPKG_CONFIG) --libs-only-L $@ | \ - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -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/[ ]*$//' \ - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' -} - -python_prepare_all() { - # scipy automatically detects libraries by default - export {FFTW,FFTW3,UMFPACK}=None - use sparse && unset UMFPACK - # the missing symbols are in -lpythonX.Y, but since the version can - # differ, we just introduce the same scaryness as on Linux/ELF - [[ ${CHOST} == *-darwin* ]] \ - && append-ldflags -bundle "-undefined dynamic_lookup" \ - || append-ldflags -shared - [[ -z ${FC} ]] && export FC="$(tc-getFC)" - # hack to force F77 to be FC until bug #278772 is fixed - [[ -z ${F77} ]] && export F77="$(tc-getFC)" - export F90="${FC}" - export SCIPY_FCONFIG="config_fc --noopt --noarch" - append-fflags -fPIC - - local libdir="${EPREFIX}"/usr/$(get_libdir) - cat >> site.cfg <<-EOF || die - [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 - - # Drop hashes to force rebuild of cython based .c code - rm cythonize.dat || die - - distutils-r1_python_prepare_all -} - -python_compile() { - ${EPYTHON} tools/cythonize.py || die - distutils-r1_python_compile \ - "-j $(makeopts_jobs)" \ - ${SCIPY_FCONFIG} -} - -python_test() { - # fails with bdist_egg. should it be fixed in distutils-r1 eclass? - distutils_install_for_testing ${SCIPY_FCONFIG} - cd "${TEST_DIR}" || die "no ${TEST_DIR} available" - "${PYTHON}" -c \ - 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ - || die - # https://github.com/scipy/scipy/issues/5426 - "${EPYTHON}" -c \ - "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ - || die "Tests fail with ${EPYTHON}" -# "${EPYTHON}" -c \ -# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ -# || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && \ - local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ - local HTML_DOCS=( "${WORKDIR}"/html/. ) - distutils-r1_python_install_all -} - -python_install() { - distutils-r1_python_install ${SCIPY_FCONFIG} -} - -pkg_postinst() { - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" - elog "to your prefered image viewer. Example:" - elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" -} diff --git a/sci-libs/scipy/scipy-0.19.1.ebuild b/sci-libs/scipy/scipy-0.19.1.ebuild deleted file mode 100644 index 45225e71258..00000000000 --- a/sci-libs/scipy/scipy-0.19.1.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) -PYTHON_REQ_USE="threads(+)" - -DOC_PV=${PV} - -inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs - -DESCRIPTION="Scientific algorithms library for Python" -HOMEPAGE="https://www.scipy.org/" -SRC_URI=" - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - doc? ( - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf - )" - -LICENSE="BSD LGPL-2" -SLOT="0" -IUSE="doc sparse test" -RESTRICT="!test? ( test )" -KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" - -CDEPEND=" - >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] - sci-libs/arpack:0= - virtual/cblas - virtual/lapack - sparse? ( sci-libs/umfpack:0= )" -DEPEND="${CDEPEND} - dev-lang/swig - >=dev-python/cython-0.22[${PYTHON_USEDEP}] - >=dev-python/setuptools-36[${PYTHON_USEDEP}] - virtual/pkgconfig - doc? ( app-arch/unzip ) - test? ( dev-python/nose[${PYTHON_USEDEP}] )" -RDEPEND="${CDEPEND} - dev-python/pillow[${PYTHON_USEDEP}]" - -DOCS=( HACKING.rst.txt THANKS.txt ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -src_unpack() { - default - if use doc; then - unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die - fi -} - -pc_incdir() { - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' -} - -pc_libdir() { - $(tc-getPKG_CONFIG) --libs-only-L $@ | \ - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -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/[ ]*$//' \ - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' -} - -python_prepare_all() { - # scipy automatically detects libraries by default - export {FFTW,FFTW3,UMFPACK}=None - use sparse && unset UMFPACK - # the missing symbols are in -lpythonX.Y, but since the version can - # differ, we just introduce the same scaryness as on Linux/ELF - [[ ${CHOST} == *-darwin* ]] \ - && append-ldflags -bundle "-undefined dynamic_lookup" \ - || append-ldflags -shared - [[ -z ${FC} ]] && export FC="$(tc-getFC)" - # hack to force F77 to be FC until bug #278772 is fixed - [[ -z ${F77} ]] && export F77="$(tc-getFC)" - export F90="${FC}" - export SCIPY_FCONFIG="config_fc --noopt --noarch" - append-fflags -fPIC - - local libdir="${EPREFIX}"/usr/$(get_libdir) - cat >> site.cfg <<-EOF || die - [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 - - # Drop hashes to force rebuild of cython based .c code - rm cythonize.dat || die - - distutils-r1_python_prepare_all -} - -python_compile() { - # FIXME: parallel python building fails, bug #614464 - ${EPYTHON} tools/cythonize.py || die - distutils-r1_python_compile \ - ${SCIPY_FCONFIG} -} - -python_test() { - # fails with bdist_egg. should it be fixed in distutils-r1 eclass? - distutils_install_for_testing ${SCIPY_FCONFIG} - cd "${TEST_DIR}" || die "no ${TEST_DIR} available" - "${PYTHON}" -c \ - 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ - || die - # https://github.com/scipy/scipy/issues/5426 - "${EPYTHON}" -c \ - "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ - || die "Tests fail with ${EPYTHON}" -# "${EPYTHON}" -c \ -# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ -# || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && \ - local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ - local HTML_DOCS=( "${WORKDIR}"/html/. ) - distutils-r1_python_install_all -} - -python_install() { - distutils-r1_python_install ${SCIPY_FCONFIG} -} - -pkg_postinst() { - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" - elog "to your prefered image viewer. Example:" - elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" -} diff --git a/sci-libs/scipy/scipy-1.0.0.ebuild b/sci-libs/scipy/scipy-1.0.0.ebuild deleted file mode 100644 index f9c24c564fd..00000000000 --- a/sci-libs/scipy/scipy-1.0.0.ebuild +++ /dev/null @@ -1,142 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{5,6} ) -PYTHON_REQ_USE="threads(+)" - -DOC_PV=${PV} - -inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs - -DESCRIPTION="Scientific algorithms library for Python" -HOMEPAGE="https://www.scipy.org/" -SRC_URI=" - mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz - doc? ( - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip - https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf - )" - -LICENSE="BSD LGPL-2" -SLOT="0" -IUSE="doc sparse test" -RESTRICT="!test? ( test )" -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" - -CDEPEND=" - >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] - sci-libs/arpack:0= - virtual/cblas - virtual/lapack - sparse? ( sci-libs/umfpack:0= )" -DEPEND="${CDEPEND} - dev-lang/swig - >=dev-python/cython-0.22[${PYTHON_USEDEP}] - >=dev-python/setuptools-36[${PYTHON_USEDEP}] - virtual/pkgconfig - doc? ( app-arch/unzip ) - test? ( - dev-python/nose[${PYTHON_USEDEP}] - dev-python/pytest[${PYTHON_USEDEP}] - )" -RDEPEND="${CDEPEND} - dev-python/pillow[${PYTHON_USEDEP}]" - -DOCS=( HACKING.rst.txt THANKS.txt ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -src_unpack() { - default - if use doc; then - unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die - fi -} - -pc_incdir() { - $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ - sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' -} - -pc_libdir() { - $(tc-getPKG_CONFIG) --libs-only-L $@ | \ - sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -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/[ ]*$//' \ - | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' -} - -python_prepare_all() { - # scipy automatically detects libraries by default - export {FFTW,FFTW3,UMFPACK}=None - use sparse && unset UMFPACK - # the missing symbols are in -lpythonX.Y, but since the version can - # differ, we just introduce the same scaryness as on Linux/ELF - [[ ${CHOST} == *-darwin* ]] \ - && append-ldflags -bundle "-undefined dynamic_lookup" \ - || append-ldflags -shared - [[ -z ${FC} ]] && export FC="$(tc-getFC)" - # hack to force F77 to be FC until bug #278772 is fixed - [[ -z ${F77} ]] && export F77="$(tc-getFC)" - export F90="${FC}" - export SCIPY_FCONFIG="config_fc --noopt --noarch" - append-fflags -fPIC - - local libdir="${EPREFIX}"/usr/$(get_libdir) - cat >> site.cfg <<-EOF || die - [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 - - # Drop hashes to force rebuild of cython based .c code - rm cythonize.dat || die - - distutils-r1_python_prepare_all -} - -python_compile() { - # FIXME: parallel python building fails, bug #614464 - ${EPYTHON} tools/cythonize.py || die - distutils-r1_python_compile \ - ${SCIPY_FCONFIG} -} - -python_test() { - # fails with bdist_egg. should it be fixed in distutils-r1 eclass? - distutils_install_for_testing ${SCIPY_FCONFIG} - cd "${TEST_DIR}" || die "no ${TEST_DIR} available" - "${PYTHON}" -c \ - 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ - || die - "${EPYTHON}" -c \ - "import scipy, sys; r = scipy.test('fast', verbose=2); sys.exit(r)" \ - || die "Tests fail with ${EPYTHON}" -} - -python_install_all() { - use doc && \ - local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ - local HTML_DOCS=( "${WORKDIR}"/html/. ) - distutils-r1_python_install_all -} - -python_install() { - distutils-r1_python_install ${SCIPY_FCONFIG} -} - -pkg_postinst() { - elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" - elog "to your prefered image viewer. Example:" - elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" -}