1 |
commit: 8312da3860c9f396691ecbd2bcb1129240d60882 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 5 10:54:30 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 5 10:55:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8312da38 |
7 |
|
8 |
sci-libs/scipy: Fix running tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sci-libs/scipy/scipy-1.4.1.ebuild | 18 ++++++++++-------- |
13 |
1 file changed, 10 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/scipy/scipy-1.4.1.ebuild b/sci-libs/scipy/scipy-1.4.1.ebuild |
16 |
index 5de99c92dbd..42e1b169419 100644 |
17 |
--- a/sci-libs/scipy/scipy-1.4.1.ebuild |
18 |
+++ b/sci-libs/scipy/scipy-1.4.1.ebuild |
19 |
@@ -21,9 +21,9 @@ SRC_URI=" |
20 |
|
21 |
LICENSE="BSD LGPL-2" |
22 |
SLOT="0" |
23 |
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
24 |
IUSE="doc sparse test" |
25 |
RESTRICT="!test? ( test )" |
26 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
27 |
|
28 |
CDEPEND=" |
29 |
>=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
30 |
@@ -99,6 +99,10 @@ python_prepare_all() { |
31 |
library_dirs = $(pc_libdir lapack):${libdir} |
32 |
lapack_libs = $(pc_libs lapack) |
33 |
EOF |
34 |
+ cat >> setup.cfg <<-EOF || die |
35 |
+ [options] |
36 |
+ zip_safe = False |
37 |
+ EOF |
38 |
|
39 |
# Drop hashes to force rebuild of cython based .c code |
40 |
rm cythonize.dat || die |
41 |
@@ -118,13 +122,11 @@ python_compile() { |
42 |
python_test() { |
43 |
# fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
44 |
distutils_install_for_testing ${SCIPY_FCONFIG} |
45 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
46 |
- "${PYTHON}" -c \ |
47 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
48 |
- || die |
49 |
- "${EPYTHON}" -c \ |
50 |
- "import scipy, sys; r = scipy.test('fast', verbose=2); sys.exit(r)" \ |
51 |
- || die "Tests fail with ${EPYTHON}" |
52 |
+ cd "${TEST_DIR}/lib" || die "no ${TEST_DIR} available" |
53 |
+ PYTHONPATH=. "${EPYTHON}" -c " |
54 |
+import scipy, sys |
55 |
+r = scipy.test('fast', verbose=2) |
56 |
+sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}" |
57 |
} |
58 |
|
59 |
python_install_all() { |