Remove pythran dependency

Resolves: RHEL-33955
This commit is contained in:
Pavel Simovec 2024-04-29 16:06:43 +02:00
parent 1edeb82294
commit 83455c9a9f
2 changed files with 14 additions and 10 deletions

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -1,11 +1,6 @@
# without means enabled
%bcond_with doc
# Pythran is an optional build dependency.
# When used, it makes some modules faster,
# but it is usually not available soon enough for new major Python versions.
%bcond_without pythran
# The code is not safe to build with LTO
%global _lto_cflags %{nil}
@ -30,7 +25,7 @@
Summary: Scientific Tools for Python
Name: scipy
Version: 1.11.3
Release: 6%{?dist}
Release: 7%{?dist}
# BSD-3-Clause -- whole package except:
# BSD-2-Clause -- scipy/_lib/_pep440.py
@ -134,15 +129,13 @@ Scipy test files
%prep
%autosetup -p1 -n %{name}-%{version}%{?rcver}
# Remove pythran dependency if not explicitly required
%if %{without pythran}
# Remove pythran dependency
sed -i '/pythran/d' pyproject.toml
%endif
cat >> pyproject.toml << EOF
[tool.meson-python.args]
setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}]
setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}', '-Duse-pythran=false']
EOF
# Enable build with Python 3.13+
@ -298,6 +291,10 @@ popd
%endif
%changelog
* Fri Apr 26 2024 Pavel Simovec <psimovec@redhat.com> - 1.11.3-7
- Fully remove pythran dependency
- Resolves: RHEL-33955
* Tue Jan 30 2024 Miro Hrončok <mhroncok@redhat.com> - 1.11.3-6
- Skip fewer tests during build