The package rpms/python-llvmlite.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/python-llvmlite.git/commit/?id=26971....
Change: +%ifarch riscv64
Thanks.
Full change: ============
commit 142be97f9e06fc7f53a29fae101b4460432891da Author: Benjamin A. Beasley code@musicinmybrain.net Date: Sat Jun 29 09:15:39 2024 -0400
Update to 0.43.0 (close RHBZ#2292256)
diff --git a/.gitignore b/.gitignore index ec25af9..c88df9c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /llvmlite-0.41.0.tar.gz /llvmlite-0.41.1.tar.gz /llvmlite-0.42.0.tar.gz +/llvmlite-0.43.0.tar.gz diff --git a/python-llvmlite.spec b/python-llvmlite.spec index e699960..2f3dfe7 100644 --- a/python-llvmlite.spec +++ b/python-llvmlite.spec @@ -5,8 +5,17 @@ # We can generate PDF documentation as a substitute. %bcond doc_pdf 1
+# While upstream now supports LLVM 15 on an “experimental” basis, sympy FTBFS +# when we build with LLVM 15. +%if 0%{?fedora} && 0%{?fedora} < 41 +%global llvm_compat 14 +%else +# Still technically “experimental”: +%global llvm_compat 15 +%endif + Name: python-llvmlite -Version: 0.42.0 +Version: 0.43.0 Release: %{autorelease} Summary: Lightweight LLVM Python binding for writing JIT compilers
@@ -38,8 +47,7 @@ Source: %{forgeurl}/archive/v%{version}/llvmlite-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-pytest
-# 0.41.0-0.42.0 only support llvm14 -BuildRequires: llvm14-devel +BuildRequires: llvm%{llvm_compat}-devel BuildRequires: gcc-c++
%global _description %{expand: @@ -95,7 +103,7 @@ echo 'intersphinx_mapping.clear()' >> docs/source/conf.py %pyproject_buildrequires %{?with_doc_pdf:docs/rtd-requirements.txt}
%build -export LLVM_CONFIG="%{_libdir}/llvm14/bin/llvm-config" +export LLVM_CONFIG="%{_libdir}/llvm%{llvm_compat}/bin/llvm-config" %pyproject_wheel
%if %{with doc_pdf} diff --git a/sources b/sources index 97ee8e8..b43cfe6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (llvmlite-0.42.0.tar.gz) = c33375fc6474efbe8cbe9284285fb80a5715d34d96ce7f5ba7d1bf392bb37aedcf025dd031d4a089d3419549fe6fd751d980d1c2b92f1142041fb5af7300437f +SHA512 (llvmlite-0.43.0.tar.gz) = a77c3c3ed31b6e71b2b3d39ff82f0a9993a6968c947c422c47a897d25f28b62e7304873dae31089db2655c3d7d4780f79786b7d62dfa07c61ba6da9ef1417ad9
commit 269710180e8e99b7fdb6704daf28d63c316c43a5 Author: Richard W.M. Jones rjones@redhat.com Date: Mon Feb 19 12:59:36 2024 +0000
Deselect some tests on riscv64.
The ones which use the LLVM JIT don't have upstream support yet. See: https://github.com/numba/llvmlite/issues/923
Signed-off-by: Richard W.M. Jones rjones@redhat.com
diff --git a/python-llvmlite.spec b/python-llvmlite.spec index b7ebe08..e699960 100644 --- a/python-llvmlite.spec +++ b/python-llvmlite.spec @@ -109,6 +109,18 @@ export LLVM_CONFIG="%{_libdir}/llvm14/bin/llvm-config"
%check %if %{with tests} +%ifarch riscv64 +# Disable JIT tests on riscv64 since that feature is not supported +# upstream yet. See: +# https://github.com/numba/llvmlite/issues/923 +# https://github.com/felixonmars/archriscv-packages/blob/master/python-llvmlit... +export PYTEST_ADDOPTS="\ + --deselect llvmlite/tests/test_binding.py::TestMCJit \ + --deselect llvmlite/tests/test_binding.py::TestGlobalConstructors \ + --deselect llvmlite/tests/test_binding.py::TestObjectFile::test_add_object_file \ + --deselect llvmlite/tests/test_binding.py::TestOrcLLJIT \ + --deselect llvmlite/tests/test_binding.py::TestDylib::test_bad_library" +%endif %{pytest} -vv llvmlite/tests %endif
commit 3a079394fceb50d16156ac28b1da6697040301b0 Author: Richard W.M. Jones rjones@redhat.com Date: Mon Feb 19 12:58:13 2024 +0000
Use pytest instead of the upstream runtests script
The upstream runtests script loads all the tests and runs them from a single binary. However that prevents us from using the usual PYTEST_* environment variables (eg. PYTEST_ADDOPTS to deselect certain tests).
Using pytest also has better diagnostic output.
Signed-off-by: Richard W.M. Jones rjones@redhat.com
diff --git a/python-llvmlite.spec b/python-llvmlite.spec index 56d8e33..b7ebe08 100644 --- a/python-llvmlite.spec +++ b/python-llvmlite.spec @@ -36,6 +36,7 @@ URL: http://llvmlite.pydata.org/ Source: %{forgeurl}/archive/v%{version}/llvmlite-%{version}.tar.gz
BuildRequires: python3-devel +BuildRequires: python3-pytest
# 0.41.0-0.42.0 only support llvm14 BuildRequires: llvm14-devel @@ -108,7 +109,7 @@ export LLVM_CONFIG="%{_libdir}/llvm14/bin/llvm-config"
%check %if %{with tests} -%{py3_test_envvars} %{python3} runtests.py +%{pytest} -vv llvmlite/tests %endif
%files -n python3-llvmlite -f %{pyproject_files}
arch-excludes@lists.fedoraproject.org