From 5e90622e965dd0dde8626fe92879d688d26bd5ee Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 17 Jan 2023 12:32:31 -0500 Subject: [PATCH] Avoid ipython test dependency in RHEL builds ipython is unwanted in RHEL, and is only used in the testsuite for an optiona integration, while pythran is a direct build dependency of scipy which is in RHEL. --- pythran.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pythran.spec b/pythran.spec index c6730f6..5b70e06 100644 --- a/pythran.spec +++ b/pythran.spec @@ -1,6 +1,6 @@ Name: pythran Version: 0.12.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Ahead of Time Python compiler for numeric kernels # pythran is BSD @@ -46,9 +46,14 @@ BuildRequires: pandoc BuildRequires: python3-pytest BuildRequires: python3-pytest-xdist BuildRequires: /usr/bin/python -BuildRequires: /usr/bin/ipython BuildRequires: python3-scipy +# ipython is not included in RHEL +# this is only used to test integration with ipython +%if %{undefined rhel} +BuildRequires: /usr/bin/ipython +%endif + # This is a package that compiles code, it runtime requires devel packages Requires: flexiblas-devel Requires: gcc-c++ @@ -130,6 +135,10 @@ k="$k and not test_interp_8" # https://github.com/serge-sans-paille/pythran/pull/1946#issuecomment-992460026 k="$k and not test_setup_bdist_install3" %endif +%if %{defined rhel} +# this test needs ipython +k="$k and not test_loadext_and_run" +%endif %pytest -n auto -k "$k" @@ -144,6 +153,9 @@ k="$k and not test_setup_bdist_install3" %changelog +* Wed Jan 25 2023 Yaakov Selkowitz - 0.12.1-3 +- Avoid ipython test dependency in RHEL builds + * Fri Jan 20 2023 Fedora Release Engineering - 0.12.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild