mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
sci-libs/scikits_learn: Version Bump
Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
@@ -3,3 +3,4 @@ DIST scikit-learn-0.14.1.tar.gz 23228378 SHA256 4c317cabb56c61f4c574879b53aa6bbe
|
||||
DIST scikit-learn-0.15.1.tar.gz 7034220 SHA256 4b13456727b9310857f12cc7b9d1c62d59f3ef602fea9d391afc0c8c847ed17d SHA512 4c2e68b1bb75c85c2a83605a32ba5adbd224bc25b19fca85e18dbe24f20cbe51cbfb02be546a4f05fc190f77e438cb17c6a5d69026455e8c11907599462f9984 WHIRLPOOL e1bc387b013abcab18d8ee0545dda543bb098b9d7636229880dea667fc4627d1822fe8a430a2d26dbafcc0b0e90326d5529245e6eff1345b73fc5a24b7a51096
|
||||
DIST scikit-learn-0.15.2.tar.gz 7007922 SHA256 1a8a881f6f13edc0ac58931ce21f899eb7920af50aa08802413d1239e2aa5fa6 SHA512 ca2470df73be1b735f756f641fdbb4dc59a54b67d12f61c54542f0928ce9242665d1b8793673a9d989a41f2c2945c2ba92ed54fc9914fbe030a5c8af289c6523 WHIRLPOOL 9043bf653f8d866f98e5a2342fbacf51fafefd5096e70989ebeb4b580c38b5468c3a2eb598d4d5492ba1413378b8c133938baa20d4a292c9f94c5596dbf1d405
|
||||
DIST scikit-learn-0.16.1.tar.gz 7267115 SHA256 c0721e295056c95c7002e05726f2bd271a7923e88bdeab34a2b60aac2b0ee6e4 SHA512 18ea7420a4a7f23f030ad1e20cf29dd7d6183872ed4aa3daf4bfb5106728de21775461b90a917f231e56fee78eea5927ff8c3160c1da1473f34315b00994461b WHIRLPOOL 15eba05ba0d9ac62ed30636ece9091cb9930e432e5726b67be3de0ae5b81a187eac8cac69184106b4a5a1c4393801fb6a375b6f025c3562223ad5ed0e508ad8c
|
||||
DIST scikit-learn-0.17.tar.gz 7834903 SHA256 23a5b6804524cb2cd54d8310010169511c7633dcf69af7439747eec02677f314 SHA512 53a76e2f90e27967bf216cd9d7e8051ed847a3381e3b7b7b8236511b4105eef41bd4d3c9f7f71a51db4b0bf99cbd571d7c1b26803757cff04424b70cb834b555 WHIRLPOOL 3a1ef13dafe6eb38389f68bc75dee10bfe141bac6d2782cd11be27ffcb8fe7efdf113b6911a238c6cd141bfe3b69960f47cf0725d0ea033129dff8fb5c57bef4
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sci</herd>
|
||||
|
||||
113
sci-libs/scikits_learn/scikits_learn-0.17.ebuild
Normal file
113
sci-libs/scikits_learn/scikits_learn-0.17.ebuild
Normal file
@@ -0,0 +1,113 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} )
|
||||
|
||||
inherit distutils-r1 eutils multilib 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/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}]
|
||||
doc? (
|
||||
dev-python/joblib[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${MYP}"
|
||||
|
||||
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"
|
||||
|
||||
# use system joblib
|
||||
rm -r sklearn/externals/joblib/* || die
|
||||
echo "from joblib import *" > sklearn/externals/joblib/__init__.py
|
||||
sed -i -e '/joblib\/test/d' sklearn/externals/setup.py || die
|
||||
sed -i -e 's/..externals.joblib/joblib/g' \
|
||||
sklearn/decomposition/tests/test_sparse_pca.py \
|
||||
sklearn/metrics/pairwise.py || die
|
||||
|
||||
rm sklearn/externals/funcsigs.py || die
|
||||
rm sklearn/externals/odict.py || die
|
||||
sed \
|
||||
-e 's:from ..externals.funcsigs import signature:from funcsigs import signature:g' \
|
||||
-i sklearn/utils/fixes.py || die
|
||||
|
||||
# use gentoo cblas infrastructure
|
||||
epatch "${FILESDIR}"/${PN}-0.14.1-system-cblas.patch
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile ${SCIPY_FCONFIG}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
cd "${S}/doc"
|
||||
local d="${BUILD_DIR}"/lib
|
||||
ln -s "${S}"/sklearn/datasets/{data,descr,images} \
|
||||
"${d}"/sklearn/datasets
|
||||
VARTEXFONTS="${T}"/fonts \
|
||||
MPLCONFIGDIR="${BUILD_DIR}" \
|
||||
PYTHONPATH="${d}" \
|
||||
emake html
|
||||
rm -r "${d}"/sklearn/datasets/{data,desr,images}
|
||||
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
|
||||
use doc && HTML_DOCS=( doc/_build/html/. )
|
||||
use examples && EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user