Add support for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-05-27 08:43:12 +03:00
parent 8bed4bf373
commit a17cf3c0f4
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 15 additions and 2 deletions

View File

@ -17,7 +17,7 @@ URL: https://www.python.org/
%global prerel b1
%global upstream_version %{general_version}%{?prerel}
Version: %{general_version}%{?prerel:~%{prerel}}
Release: 1%{?dist}
Release: 1.0.riscv64%{?dist}
License: Python-2.0.1
@ -1058,8 +1058,16 @@ CheckPython() {
# we don't ship it in the RPM package.
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
-wW --slowest %{_smp_mflags} --timeout=2700 \
-wW --slowest %{_smp_mflags} \
%ifnarch riscv64
--timeout=2700 \
%else
--timeout=27000 \
%endif
-i test_freeze_simple_script \
%ifarch riscv64
-x test_eintr \
%endif
%ifarch %{mips64}
-x test_ctypes \
%endif
@ -1568,6 +1576,11 @@ CheckPython optimized
# ======================================================
%changelog
* Sat May 27 2023 David Abdurachmanov <davidlt@rivosinc.com> - 3.12.0~b1-1.0.riscv64
- Add support for riscv64:
- Increase tests timeout.
- Disable test_eintr test.
* Tue May 23 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.12.0~b1-1
- Update to 3.12.0b1