From 28afbc66bca5259f548ac65a817f922c5358b530 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 1 Nov 2024 17:58:52 +0000 Subject: Adding metadata --- dev-python/numpy/numpy-2.0.2-r1.ebuild | 50 +++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 4 deletions(-) (limited to 'dev-python/numpy/numpy-2.0.2-r1.ebuild') diff --git a/dev-python/numpy/numpy-2.0.2-r1.ebuild b/dev-python/numpy/numpy-2.0.2-r1.ebuild index 89b62e871bb8..e89a1c785b7f 100644 --- a/dev-python/numpy/numpy-2.0.2-r1.ebuild +++ b/dev-python/numpy/numpy-2.0.2-r1.ebuild @@ -20,10 +20,10 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0/2" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc ~x86" # +lapack because the internal fallbacks are pretty slow. Building without blas # is barely supported anyway, see bug #914358. -IUSE="+lapack" +IUSE="big-endian +lapack" RDEPEND=" lapack? ( @@ -95,13 +95,55 @@ python_test() { typing/tests/test_typing.py # Uses huge amount of memory core/tests/test_mem_overlap.py - 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' ) if [[ $(uname -m) == armv8l ]]; then # Degenerate case of arm32 chroot on arm64, bug #774108 EPYTEST_DESELECT+=( - core/tests/test_cpu_features.py::Test_ARM_Features::test_features + _core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + case ${ARCH} in + arm) + EPYTEST_DESELECT+=( + # TODO: warnings + _core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception + + # 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_precision + ) + ;& + ppc|x86) + EPYTEST_DESELECT+=( + # require too much memory + '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + ) + ;; + 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 -- cgit v1.3