From d934827bf44b7cfcf6711964418148fa60877668 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Nov 2020 22:39:15 +0000 Subject: gentoo resync : 25.11.2020 --- sci-libs/scikit-learn/Manifest | 5 ++ sci-libs/scikit-learn/metadata.xml | 21 +++++++ .../scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild | 71 ++++++++++++++++++++++ sci-libs/scikit-learn/scikit-learn-0.23.2.ebuild | 66 ++++++++++++++++++++ 4 files changed, 163 insertions(+) create mode 100644 sci-libs/scikit-learn/Manifest create mode 100644 sci-libs/scikit-learn/metadata.xml create mode 100644 sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild create mode 100644 sci-libs/scikit-learn/scikit-learn-0.23.2.ebuild (limited to 'sci-libs/scikit-learn') diff --git a/sci-libs/scikit-learn/Manifest b/sci-libs/scikit-learn/Manifest new file mode 100644 index 000000000000..49ca10603d7b --- /dev/null +++ b/sci-libs/scikit-learn/Manifest @@ -0,0 +1,5 @@ +DIST scikit-learn-0.22.2_p1.tar.gz 7034850 BLAKE2B 41c362ef6594e837a9fc798837e666fbb51e33954fdf700292650204fd9d1ab4fc4d1695890d02a24ad68f4dcc2d3cde8f0827eca70c6fb9a6f0e5c0d9c04fd5 SHA512 20bcda5c65f76bce9b71c5b5fb1b499f7f3a7a3f6fa5fade80a38dc658cb434e16e9d5a4906a9657157a5cc90a6d51080575d6e510207baa9f8b06c4fa761d5b +DIST scikit-learn-0.23.2.tar.gz 7190564 BLAKE2B db90e3d05d9b563c6cd98a6820c27b541e757e3fb6c25262b720842811b9e26d41a4a9c1d73e675714573d84dab799a0c450e768f4a41a39a6a61f6930c4c79a SHA512 e9797185b1b9def3ee5525e9b72742784aeb78fe8b069bb5aeab1d0f4513cf738c4489ed894274606dea9d6a32ccd3df26170ce1951e443dc77f9287c372e8c5 +EBUILD scikit-learn-0.22.2_p1-r1.ebuild 1638 BLAKE2B 9809ad980840ecc42fe8d231e0582e21492017365e1304abfd207911c3b664ade403b04ce262a6b91fb5614cc38aec87f67bf8e52cdb175aef26702311c78a62 SHA512 03c98713763c75af89c205705d96983bada41014d0f67c1b9176fbc118832222d96908ed5f88ffd89919341cecb993e7669141f8165021f73cfb271c91212fd3 +EBUILD scikit-learn-0.23.2.ebuild 1501 BLAKE2B af43692648b23fed1fb2fe41694db9769c5e14f71dcac69c3c02a982b0eb68be107410cc28c179898d74b073f11ce03bd37d6160cca43d70f44e37983d52f9e5 SHA512 e5e97a70d745e9d4fa1bef9bf79e22448a2aaa1861f0d607a0efa348dd2d75131c553f56f320700e9f67fc2b6431d131a712d3a2e61c2adcf45dbbe3385bfd2d +MISC metadata.xml 722 BLAKE2B 678b21d5cc514504a3dfef33f3066c55885285d85fc8a8582051b53a41675a8b9c589a0c226b838590e6bf1b740ce9d82840874f75049b92f7a681576bfeea78 SHA512 ac8ca303bd2df0f523496233edcec70ecf6cbe3fd863c4ac28ecd0250eed6b67135e39a74e93e6adcbbebac17766e4a8bcb9be2a73a2464400346f47afbfb440 diff --git a/sci-libs/scikit-learn/metadata.xml b/sci-libs/scikit-learn/metadata.xml new file mode 100644 index 000000000000..681e5c20b1f3 --- /dev/null +++ b/sci-libs/scikit-learn/metadata.xml @@ -0,0 +1,21 @@ + + + + + gentoo@aisha.cc + Aisha Tammy + + + sci@gentoo.org + Gentoo Science Project + + + sklearn is a python library for machine learning. It aims to + implement classic machine learning algorithms while remaining simple + and efficient. + + + scikit-learn + scikit-learn/scikit-learn + + diff --git a/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild b/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild new file mode 100644 index 000000000000..db552f4ee708 --- /dev/null +++ b/sci-libs/scikit-learn/scikit-learn-0.22.2_p1-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit distutils-r1 + +MY_PV="${PV//_p/.post}" + +DESCRIPTION="Machine learning library for Python" +HOMEPAGE="https://scikit-learn.org/stable/" +SRC_URI="https://github.com/scikit-learn/scikit-learn/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +#ffhttps://github.com/scikit-learn/scikit-learn/archive/0.22.2.post1.tar.gz +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~ppc64 x86" +IUSE="examples" + +RDEPEND=" + dev-python/wheel[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + virtual/blas:= + virtual/cblas:= +" +DEPEND=" + virtual/blas:= + virtual/cblas:= +" + +distutils_enable_tests pytest + +python_prepare_all() { + # scikits-learn now uses the horrible numpy.distutils automagic + export SCIPY_FCONFIG="config_fc --noopt --noarch" + + # remove bundled cblas + rm -rf sklearn/src || die "failed to remove bundled cblas" + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile ${SCIPY_FCONFIG} +} + +python_test() { + distutils_install_for_testing ${SCIPY_FCONFIG} + pushd "${TEST_DIR}/lib" >/dev/null || die + pytest -vv || die "testing failed with ${EPYTHON}" + popd >/dev/null || die +} + +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 + +} diff --git a/sci-libs/scikit-learn/scikit-learn-0.23.2.ebuild b/sci-libs/scikit-learn/scikit-learn-0.23.2.ebuild new file mode 100644 index 000000000000..626d84dd3335 --- /dev/null +++ b/sci-libs/scikit-learn/scikit-learn-0.23.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 + +DESCRIPTION="Machine learning library for Python" +HOMEPAGE="https://scikit-learn.org/stable/" +SRC_URI="https://github.com/scikit-learn/scikit-learn/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="examples" + +DEPEND=" + virtual/blas:= + virtual/cblas:= +" +RDEPEND=" + ${DEPEND} + dev-python/wheel[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + dev-python/joblib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/threadpoolctl[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + # scikits-learn now uses the horrible numpy.distutils automagic + export SCIPY_FCONFIG="config_fc --noopt --noarch" + + # remove bundled cblas + rm -rf sklearn/src || die "failed to remove bundled cblas" + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile ${SCIPY_FCONFIG} +} + +python_test() { + distutils_install_for_testing ${SCIPY_FCONFIG} + pushd "${TEST_DIR}/lib" >/dev/null || die + pytest -vv || die "testing failed with ${EPYTHON}" + popd >/dev/null || die +} + +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 + fi +} -- cgit v1.2.3