commit: 8bb6bcb07ac41f300d430441a7cb0998fd3f94dc
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 25 18:08:48 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 25 18:08:48 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bb6bcb0
dev-python/uncertainties: make numpy optional dep
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/uncertainties/uncertainties-3.1.6.ebuild | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/dev-python/uncertainties/uncertainties-3.1.6.ebuild
b/dev-python/uncertainties/uncertainties-3.1.6.ebuild
index 79cf80d6291..69090d5bc1f 100644
--- a/dev-python/uncertainties/uncertainties-3.1.6.ebuild
+++ b/dev-python/uncertainties/uncertainties-3.1.6.ebuild
@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
-inherit distutils-r1
+inherit distutils-r1 optfeature
DESCRIPTION="Python module for calculations with uncertainties"
HOMEPAGE="https://pythonhosted.org/uncertainties/"
@@ -15,13 +15,10 @@ SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
-RDEPEND="
- dev-python/numpy[${PYTHON_USEDEP}]
- dev-python/future[${PYTHON_USEDEP}]
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
+RDEPEND="dev-python/future[${PYTHON_USEDEP}]"
+BDEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )
"
distutils_enable_tests nose
@@ -34,3 +31,7 @@ python_install_all() {
use doc && local HTML_DOCS=( build/sphinx/html/. )
distutils-r1_python_install_all
}
+
+pkg_postinst() {
+ optfeature "numpy support" dev-python/numpy
+}