Bootstrap on riscv64 without SciPy

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-11-30 10:02:07 +02:00
parent 8b3688c4be
commit 9a1ba5a701
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: pythran
Version: 0.14.0
Release: 2%{?dist}
Release: 2.0.riscv64%{?dist}
Summary: Ahead of Time Python compiler for numeric kernels
# pythran is BSD
@ -37,15 +37,21 @@ BuildRequires: xsimd-devel >= 8
# For docs
# Avoid building the docs by default on RHEL not to drag pandoc into RHEL:
%ifnarch riscv64
%bcond docs %{undefined rhel}
%else
%bcond docs 0
%endif
%if %{with docs}
BuildRequires: pandoc
%endif
# For tests
%ifnarch riscv64
BuildRequires: python3-pytest
BuildRequires: /usr/bin/python
BuildRequires: python3-scipy
%endif
# these packages are not included in RHEL
%if %{undefined rhel}
@ -117,6 +123,10 @@ rm -rf docs/_build/html/.{doctrees,buildinfo}
%check
%ifarch riscv64
exit 0
%endif
# https://bugzilla.redhat.com/show_bug.cgi?id=1747029#c12
k="not test_numpy_negative_binomial"
%if 0%{?__isa_bits} == 32
@ -170,6 +180,9 @@ k="$k and not test_setup_sdist_install3"
%changelog
* Thu Nov 30 2023 David Abdurachmanov <davidlt@rivosinc.com> - 0.14.0-2.0.riscv64
- Bootstrap on riscv64 without SciPy
* Thu Oct 05 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.14.0-2
- Fix FTBFS: skip tests that need numpy.distutils
- On 32-bit, run tests in serial and skip those that exhaust memory