From 5cc48f1485194db5e07f1271c6c5b94dc1908eb2 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: May 26 2023 08:42:42 +0000 Subject: Avoid python-jedi dependency in RHEL builds python-jedi is unwanted in RHEL; the tests which use it are skipped if absent, see the comment for details. Co-Authored-By: Miro Hrončok --- diff --git a/Cython.spec b/Cython.spec index 826f628..0655590 100644 --- a/Cython.spec +++ b/Cython.spec @@ -6,7 +6,7 @@ Name: Cython Version: 0.29.34 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Language for writing Python extension modules License: Apache-2.0 @@ -24,8 +24,15 @@ BuildRequires: python3-setuptools %if %{with tests} BuildRequires: gcc-c++ BuildRequires: python3-numpy +# The tests requiring jedi are optional and skipped when jedi is not installed. +# Note that the jedi tests were forcefully disabled a long time ago, +# in https://github.com/cython/cython/issues/1845 far, far away. +# We keep the dependency here so we don't forget to re-add it once the balance is restored. +# We don't want to pull in jedi to RHEL just to potentially run more tests. +%if %{undefined rhel} BuildRequires: python3-jedi %endif +%endif %if %{with cython_compile} BuildRequires: gcc @@ -133,6 +140,9 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir %changelog +* Wed May 24 2023 Yaakov Selkowitz - 0.29.34-2 +- Avoid python-jedi dependency in RHEL builds + * Mon Apr 03 2023 Miro Hrončok - 0.29.34-1 - Update to 0.29.34 - Fixes: rhbz#1823181