summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/scipy/metadata.xml1
-rw-r--r--dev-python/scipy/scipy-1.7.1.ebuild6
2 files changed, 5 insertions, 2 deletions
diff --git a/dev-python/scipy/metadata.xml b/dev-python/scipy/metadata.xml
index 9e4a6eb32f2e..0192620473a3 100644
--- a/dev-python/scipy/metadata.xml
+++ b/dev-python/scipy/metadata.xml
@@ -18,6 +18,7 @@
algorithms, ODE solvers, and others.
</longdescription>
<use>
+ <flag name="pythran">Use <pkg>dev-python/pythran</pkg> to accelerate runtime</flag>
<flag name="sparse">Adds support for sparse solving with <pkg>sci-libs/umfpack</pkg></flag>
</use>
<upstream>
diff --git a/dev-python/scipy/scipy-1.7.1.ebuild b/dev-python/scipy/scipy-1.7.1.ebuild
index b972b9258178..ed5e007e4e2f 100644
--- a/dev-python/scipy/scipy-1.7.1.ebuild
+++ b/dev-python/scipy/scipy-1.7.1.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
LICENSE="BSD LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
-IUSE="doc sparse"
+IUSE="doc pythran sparse"
DEPEND="
>=dev-python/numpy-1.16.5[lapack,${PYTHON_USEDEP}]
@@ -36,9 +36,9 @@ BDEPEND="
dev-lang/swig
>=dev-python/cython-0.29.18[${PYTHON_USEDEP}]
dev-python/pybind11[${PYTHON_USEDEP}]
- dev-python/pythran[${PYTHON_USEDEP}]
virtual/pkgconfig
doc? ( app-arch/unzip )
+ pythran? ( dev-python/pythran[${PYTHON_USEDEP}] )
test? (
dev-python/nose[${PYTHON_USEDEP}]
)"
@@ -122,6 +122,8 @@ python_prepare_all() {
}
python_configure_all() {
+ export SCIPY_USE_PYTHRAN=$(usex pythran 1 0)
+
# bug 721860
test-flag-FC -fallow-argument-mismatch &&
append-fflags -fallow-argument-mismatch