diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2017-06-27 05:18:18 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2017-06-28 04:00:11 +0000 |
commit | efb5e8dff42c169bcc310642a2b8727642bc83ae (patch) | |
tree | 39754478032fd2431c3061c371dcb627d4f48c37 /sci-libs/scikits_learn | |
parent | sci-libs/scikits: added python-3.6 (diff) | |
download | gentoo-efb5e8dff42c169bcc310642a2b8727642bc83ae.tar.gz gentoo-efb5e8dff42c169bcc310642a2b8727642bc83ae.tar.bz2 gentoo-efb5e8dff42c169bcc310642a2b8727642bc83ae.zip |
sci-libs/scikits_learn: version bump
Package-Manager: Portage-2.3.6, Repoman-2.3.2
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.18.2.ebuild | 119 |
2 files changed, 120 insertions, 0 deletions
diff --git a/sci-libs/scikits_learn/Manifest b/sci-libs/scikits_learn/Manifest index 8fc199b9b8df..9b7f7d03ef77 100644 --- a/sci-libs/scikits_learn/Manifest +++ b/sci-libs/scikits_learn/Manifest @@ -1,3 +1,4 @@ DIST scikit-learn-0.17.1.tar.gz 7898571 SHA256 9f4cf58e57d81783289fc503caaed1f210bab49b7a6f680bf3c04b1e0a96e5f0 SHA512 5786e04a13225d2433103f1873f2753e332704b98c4c32b840970f763ec1abf0248007089e5ae47e11c66535f05a0d0402715622e6d6f0955ec7961b92e1b2e5 WHIRLPOOL cded0be080aa0e6e5486d2613c007c7ff1ea769b623f60cb97c4e03b2d130c53b66e9c22a20d644c61cd82eb8b460024a2b84365ff846aacfc07bf49a6bef0ac DIST scikit-learn-0.17.tar.gz 7834903 SHA256 23a5b6804524cb2cd54d8310010169511c7633dcf69af7439747eec02677f314 SHA512 53a76e2f90e27967bf216cd9d7e8051ed847a3381e3b7b7b8236511b4105eef41bd4d3c9f7f71a51db4b0bf99cbd571d7c1b26803757cff04424b70cb834b555 WHIRLPOOL 3a1ef13dafe6eb38389f68bc75dee10bfe141bac6d2782cd11be27ffcb8fe7efdf113b6911a238c6cd141bfe3b69960f47cf0725d0ea033129dff8fb5c57bef4 DIST scikit-learn-0.18.1.tar.gz 8933930 SHA256 1eddfc27bb37597a5d514de1299981758e660e0af56981c0bfdf462c9568a60c SHA512 7149e683424351a28c19501302ece147cb03d4d12b08822eb2b1898a4978b96803323778fbba628008dd7a7c85daea4e9b550a71ee76851f9a09b2baac18a799 WHIRLPOOL c709586d3b8bdd938a81e97cfc5c77e31b7b0ef068c2d3f6ec922999a524d9ba0234ca42270724b2f6f3da98409b6d85b229aa241adbc02136b95bbb91c757b6 +DIST scikit-learn-0.18.2.tar.gz 9224516 SHA256 f78c3e11bf38838eaf637cdd9e8d6b575a4a4048d1670a03a72b0d00d3f39ffa SHA512 7c5c7bdd577ad215790654ce1eff6e802aebe53283ab6c5f12684cf99aeecc8976f9a9803f619f549d4d03be0d7634f249046e4b4f15afa12aecb2697e2e0b05 WHIRLPOOL eb4ca45c73892ca378bd580f00fd4d7ad3ea886d9522586e88bf291162cb30bd3bb23ead2c5d2283010fac650d183c0979710f30d1ba4a57f12a8e87052df847 diff --git a/sci-libs/scikits_learn/scikits_learn-0.18.2.ebuild b/sci-libs/scikits_learn/scikits_learn-0.18.2.ebuild new file mode 100644 index 000000000000..7f8aa4ce6687 --- /dev/null +++ b/sci-libs/scikits_learn/scikits_learn-0.18.2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 flag-o-matic + +MYPN="${PN/scikits_/scikit-}" +MYP="${MYPN}-${PV}" + +DESCRIPTION="Python modules for machine learning and data mining" +HOMEPAGE="http://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="doc examples test" + +RDEPEND=" + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + >=dev-python/numpy-1.6.1[lapack,${PYTHON_USEDEP}] + sci-libs/scikits[${PYTHON_USEDEP}] + >=sci-libs/scipy-0.9[${PYTHON_USEDEP}] + virtual/blas + virtual/cblas + virtual/python-funcsigs[${PYTHON_USEDEP}] + " +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 + doc? ( + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + )" + +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 + + # 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 + + 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_compile_all() { + if use doc; then + cd "${S}/doc" || die + local d="${BUILD_DIR}"/lib + ln -s "${S}"/sklearn/datasets/{data,descr,images} \ + "${d}"/sklearn/datasets || die + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${d}" \ + emake html + rm -r "${d}"/sklearn/datasets/{data,descr,images} || die + fi +} + +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 + 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 + insinto /usr/share/doc/${PF} + use doc && doins -r doc/_build/html + use examples && doins -r examples + distutils-r1_python_install_all +} |