summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-01 12:31:58 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-01 12:35:23 +0100
commitfe2585ea20455bfbb96e572b4332ad1bab63c4a2 (patch)
tree22c25c652c0fa7d021485169538f6d40828594e5 /dev-python/numpy
parentsys-kernel/vanilla-sources: drop 6.6.58 (diff)
downloadgentoo-fe2585ea20455bfbb96e572b4332ad1bab63c4a2.tar.gz
gentoo-fe2585ea20455bfbb96e572b4332ad1bab63c4a2.tar.bz2
gentoo-fe2585ea20455bfbb96e572b4332ad1bab63c4a2.zip
dev-python/numpy: Streamline deselects and cover sparc
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/numpy')
-rw-r--r--dev-python/numpy/numpy-2.0.2-r1.ebuild47
-rw-r--r--dev-python/numpy/numpy-2.1.2.ebuild37
2 files changed, 46 insertions, 38 deletions
diff --git a/dev-python/numpy/numpy-2.0.2-r1.ebuild b/dev-python/numpy/numpy-2.0.2-r1.ebuild
index 330b819c92a5..dd7c33631355 100644
--- a/dev-python/numpy/numpy-2.0.2-r1.ebuild
+++ b/dev-python/numpy/numpy-2.0.2-r1.ebuild
@@ -113,29 +113,10 @@ python_test() {
# TODO
_core/tests/test_function_base.py::TestLinspace::test_denormal_numbers
f2py/tests/test_kind.py::TestKind::test_real
- f2py/tests/test_kind.py::TestKind::test_quad_precisionn
-
- # require too much memory
- '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
- '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]'
- )
- ;;
- ppc64)
- EPYTEST_DESELECT+=(
- # long double thingy
- _core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128
-
- # TODO
- _core/tests/test_cpu_features.py::TestEnvPrivation::test_impossible_feature_enable
- linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases
- linalg/tests/test_linalg.py::TestDet::test_sq_cases
- "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]"
- "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]"
- "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]"
- "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]"
+ f2py/tests/test_kind.py::TestKind::test_quad_precision
)
- ;;
- x86)
+ ;&
+ ppc|x86)
EPYTEST_DESELECT+=(
# require too much memory
'_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
@@ -144,6 +125,28 @@ python_test() {
;;
esac
+ if [[ ${CHOST} == powerpc64le-* ]]; then
+ EPYTEST_DESELECT+=(
+ # long double thingy
+ _core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128
+ )
+ fi
+
+ if use big-endian; then
+ EPYTEST_DESELECT+=(
+ # ppc64
+ _core/tests/test_cpu_features.py::TestEnvPrivation::test_impossible_feature_enable
+
+ # ppc64 and sparc
+ linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases
+ linalg/tests/test_linalg.py::TestDet::test_sq_cases
+ "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]"
+ "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]"
+ "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]"
+ "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]"
+ )
+ fi
+
case ${EPYTHON} in
python3.13)
EPYTEST_DESELECT+=(
diff --git a/dev-python/numpy/numpy-2.1.2.ebuild b/dev-python/numpy/numpy-2.1.2.ebuild
index 3e922c8cb543..e7738112918a 100644
--- a/dev-python/numpy/numpy-2.1.2.ebuild
+++ b/dev-python/numpy/numpy-2.1.2.ebuild
@@ -114,22 +114,8 @@ python_test() {
'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]'
)
- ;;
- ppc64)
- EPYTEST_DESELECT+=(
- # long double thingy (on ppc64le)
- numpy/_core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128
-
- # TODO (on BE)
- numpy/linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases
- numpy/linalg/tests/test_linalg.py::TestDet::test_sq_cases
- "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]"
- "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]"
- "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]"
- "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]"
- )
- ;;
- x86)
+ ;&
+ ppc|x86)
EPYTEST_DESELECT+=(
# require too much memory
'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]'
@@ -138,6 +124,25 @@ python_test() {
;;
esac
+ if [[ ${CHOST} == powerpc64le-* ]]; then
+ EPYTEST_DESELECT+=(
+ # long double thingy
+ numpy/_core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128
+ )
+ fi
+
+ if use big-endian; then
+ EPYTEST_DESELECT+=(
+ # ppc64 and sparc
+ numpy/linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases
+ numpy/linalg/tests/test_linalg.py::TestDet::test_sq_cases
+ "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]"
+ "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]"
+ "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]"
+ "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]"
+ )
+ fi
+
case ${EPYTHON} in
python3.13)
EPYTEST_DESELECT+=(