diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
commit | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch) | |
tree | 326613a08f25851c388715e205576a2e7d25dc4f /sci-libs/scikits_learn | |
parent | b24bd25253fe093f722ab576d29fdc41d04cb1ee (diff) |
gentoo resync : 18.08.2019
Diffstat (limited to 'sci-libs/scikits_learn')
-rw-r--r-- | sci-libs/scikits_learn/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/scikits_learn/scikits_learn-0.19.0-r1.ebuild | 106 |
2 files changed, 107 insertions, 0 deletions
diff --git a/sci-libs/scikits_learn/Manifest b/sci-libs/scikits_learn/Manifest index a374a97c87f1..1bd2d8aab788 100644 --- a/sci-libs/scikits_learn/Manifest +++ b/sci-libs/scikits_learn/Manifest @@ -11,5 +11,6 @@ EBUILD scikits_learn-0.17.ebuild 3101 BLAKE2B cb820e2a85478a08baee14de1a8c4f47ec EBUILD scikits_learn-0.18.1.ebuild 3129 BLAKE2B d27141520db85f89685949e3d62f1e4512de15f458ed2c77ab7250bec7fe834f9a8d560ea7f7566b7ea2e07a533150d04b40a28edb42fa8def30dcf10c56f9fd SHA512 28976162f6b03af48d4478e05e9d3e3dd56d809865df915abb5c322de078d9eafb8758cce118c295c875b0a67cef65d5c511abede23d64e4add522395d9bf36f EBUILD scikits_learn-0.18.2-r1.ebuild 3277 BLAKE2B 30df6d022a1ef0100f34fb6dbcbab2a80b61c083b6e58cb49205e2e7a8125868be52ba12fea55be305f302a012da1a77dc94712ee0def7078ada1018898d5cf7 SHA512 2bd0578062ab1a99862651e80ebf40569898d0159b2d86a4c85a548d4b192a81816b05f152d482c6a3a108bc77d377fea27a484c2f1c54b2024dd3cc6a9b17bc EBUILD scikits_learn-0.18.2.ebuild 3141 BLAKE2B 0c9220602cb8f67f4251f4eaf813553d81ef49d24b1c46ba90611a0f33f1e28c40534c0802319ab09c910cc581d7244936a8ede48209308085daf73277a1cfbb SHA512 34d010e3de4c67c940b8218c4d2fbf69968ccc34e7d81e73d93e644fae8641d33fb3d06a23be3adbef8714dff86eb0e12643311c649d353f8da60cff00df6f8f +EBUILD scikits_learn-0.19.0-r1.ebuild 2821 BLAKE2B a267003f211e4e9a5b16dd50121965cfd1d48f11504e3d6818f4a667b8d5be735e0dd6b526ab0abf4234990258a32b0d810a7db323f22443241838ff8ac62dd2 SHA512 4db55b7807707db298c0a455bf0e18e9a7698d8434ea140416562ae3c061e5ab316e6e5ea80f519fe7e3c9fc9dc9419d3d110f77a9142ea025dc5a8b2fcc18da EBUILD scikits_learn-0.19.0.ebuild 2819 BLAKE2B f8e1f95c028c061d7b7f7d652e2a88854c4e5b4d24a5b4f4188de536279080e5515f9f1392d25502ba1fa6fbdf0879be7e07d7bec8e6f9ef2392818de4e0df4e SHA512 220cf1360fbdca2127330fff1beacfdc8103886ae04b8baf94a195638b242ef6dc6241b9814b40adcd90d4f7bf70ae10a14a3df2b638e0104e857ee58116691e MISC metadata.xml 605 BLAKE2B 46a657647a79f0a23cc07b39877b1e57158cdf94d9478c3aa4e7af0dbdbf60acf996d1431076697db764d42bec0d5e0517c1247e91dc36e85823a45784d00e71 SHA512 e14b6835108fa80eca44bab635c9a229da65f048ffcee16cd4ad7736c3a0fb364c94ff0bd9630030653bd3cd78d8dced191c43c7e5aacb3a7f6e61ac45b5bb3d diff --git a/sci-libs/scikits_learn/scikits_learn-0.19.0-r1.ebuild b/sci-libs/scikits_learn/scikits_learn-0.19.0-r1.ebuild new file mode 100644 index 000000000000..3184d4e85551 --- /dev/null +++ b/sci-libs/scikits_learn/scikits_learn-0.19.0-r1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 flag-o-matic + +MYPN="${PN/scikits_/scikit-}" +MYP="${MYPN}-${PV}" + +DESCRIPTION="Python modules for machine learning and data mining" +HOMEPAGE="https://scikit-learn.org" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="examples test" + +# tried to unbundle virtual/python-funcsigs, funcsigs, odict +# but it is a large mess to maintain + +RDEPEND=" + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + dev-python/numpy[lapack,${PYTHON_USEDEP}] + sci-libs/scikits[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + virtual/blas:= + virtual/cblas:= +" + +DEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/numpy[lapack,${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + virtual/blas:= + virtual/cblas:= +" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-0.18.1-system-cblas.patch ) + +python_prepare_all() { + # bug #397605 + [[ ${CHOST} == *-darwin* ]] \ + && append-ldflags -bundle "-undefined dynamic_lookup" \ + || append-ldflags -shared + + # scikits-learn now uses the horrible numpy.distutils automagic + export SCIPY_FCONFIG="config_fc --noopt --noarch" + + # remove bundled cblas + rm -r sklearn/src || die + + # commented out, since it is a mess to maintain + # use system joblib + #rm -r sklearn/externals/joblib || die + #sed -i -e '/joblib/d' sklearn/externals/setup.py || die + #for f in sklearn/{*/,}*.py; do + # sed -r -e '/^from/s/(sklearn|\.|)\.externals\.joblib/joblib/' \ + # -e 's/from (sklearn|\.|)\.externals import/import/' -i $f || die + #done + + # use system funcsigs and odict + #rm sklearn/externals/funcsigs.py || die + #rm sklearn/externals/odict.py || die + #for f in sklearn/{utils/fixes.py,gaussian_process/{tests/test_,}kernels.py}; do + # sed -r -e 's/from (sklearn|\.|)\.externals\.funcsigs/from funcsigs/' -i $f || die + #done + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile ${SCIPY_FCONFIG} +} + +python_test() { + # doc builds and runs tests + use doc && return + distutils_install_for_testing ${SCIPY_FCONFIG} + esetup.py install \ + --root="${T}/test-${EPYTHON}" \ + --no-compile ${SCIPY_FCONFIG} + pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null + JOBLIB_MULTIPROCESSING=2 SKLEARN_SKIP_NETWORK_TESTS=1 nosetests -v sklearn --exe || die + popd > /dev/null +} + +python_install() { + distutils-r1_python_install ${SCIPY_FCONFIG} +} + +python_install_all() { + find "${S}" -name \*LICENSE.txt -delete + distutils-r1_python_install_all + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + +} |