From 6c3024f6b1fcdf193939441bd2e273575fe24047 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 6 Nov 2023 12:45:05 +0200 Subject: [PATCH] Enable riscv64 Signed-off-by: David Abdurachmanov --- scipy.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scipy.spec b/scipy.spec index 5a1fc11..466689e 100644 --- a/scipy.spec +++ b/scipy.spec @@ -4,7 +4,7 @@ # Pythran is an optional build dependency. # When used, it makes some modules faster, # but it is usually not available soon enough for new major Python versions. -%ifarch i686 armv7hl +%ifarch i686 armv7hl riscv64 # It seems pythran is broken on 32-bit arches, disable it %bcond_with pythran %else @@ -25,7 +25,7 @@ Summary: Scientific Tools for Python Name: scipy Version: 1.11.1 -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} # BSD -- whole package except: # Boost -- scipy/special/cephes/scipy_iv.c @@ -224,6 +224,17 @@ not test_resiliency_random[TestCSC-test_sum_dtype]'" %endif +%ifarch riscv64 +export PYTEST_ADDOPTS="-k '$SKIP_ALL and \ +not TestSchur and \ +not test_gejsv_general and \ +not test_kendall_p_exact_large and \ +not test_gejsv_edge_arguments and \ +not test_gh12999 and \ +not test_gejsv_NAG'" +TIMEOUT=1000 +%endif + pushd %{buildroot}/%{python3_sitearch} %{pytest} --timeout=${TIMEOUT} scipy %{?!rhel:--numprocesses=auto} # Remove test remnants @@ -253,6 +264,9 @@ popd %endif %changelog +* Mon Nov 06 2023 David Abdurachmanov - 1.11.1-1.0.riscv64 +- Enable riscv64 + * Wed Jul 12 2023 psimovec - 1.11.1-1 - New upstream release 1.11.1 resolves: #2211813