commit: 06d640095ed4f74e145512a50b270db1278a0811 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> AuthorDate: Sat Jan 15 14:08:06 2022 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Sat Jan 15 14:08:06 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=06d64009
sci-libs/mlpack: fix pytest-runner error Closes: https://github.com/gentoo/sci/issues/1086 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-libs/mlpack/mlpack-3.4.2.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/sci-libs/mlpack/mlpack-3.4.2.ebuild b/sci-libs/mlpack/mlpack-3.4.2.ebuild index d03dd9ab1..bfc7231e1 100644 --- a/sci-libs/mlpack/mlpack-3.4.2.ebuild +++ b/sci-libs/mlpack/mlpack-3.4.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -34,10 +34,10 @@ RDEPEND=" $(python_gen_cond_dep ' dev-libs/boost[${PYTHON_USEDEP}] dev-libs/libxml2[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] ') - dev-python/pandas - dev-python/cython - dev-python/numpy dev-libs/stb >=sci-libs/armadillo-8.4.0[arpack,blas,lapack] sci-libs/ensmallen @@ -51,6 +51,9 @@ BDEPEND=" app-doc/doxygen dev-libs/mathjax ) + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ') test? ( $( python_gen_cond_dep ' dev-python/pytest[${PYTHON_USEDEP}] ') @@ -75,6 +78,9 @@ src_prepare() { -e "s:share/doc/mlpack:share/doc/${PF}:" \ -e 's/-O3//g' \ CMakeLists.txt || die + # drop dep on pytest-runner + sed -i -e "/setup_requires/d" \ + src/mlpack/bindings/python/setup.py.in || die cmake_src_prepare }