Remove the mentions about Pythran before adding options to meson-python

This commit is contained in:
Karolina Surma 2023-11-30 11:44:22 +01:00
parent a78d2e4fe6
commit 5ba7407824
1 changed files with 10 additions and 6 deletions

View File

@ -23,7 +23,7 @@
Summary: Scientific Tools for Python
Name: scipy
Version: 1.11.3
Release: 2%{?dist}
Release: 3%{?dist}
# BSD-3-Clause -- whole package except:
# BSD-2-Clause -- scipy/_lib/_pep440.py
@ -126,6 +126,12 @@ Scipy test files
%prep
%autosetup -p1 -n %{name}-%{version}%{?rcver}
# Remove pythran dependency if not explicitly required
%if %{without pythran}
sed -i '/pythran/d' pyproject.toml
%endif
cat >> pyproject.toml << EOF
[tool.meson-python.args]
@ -160,11 +166,6 @@ sed -i '/^[[:blank:]]*"scikit-umfpack"/d' pyproject.toml
sed -i '/^[[:blank:]]*"pytest-xdist"/d' pyproject.toml
%endif
# Remove pythran dependency if not explicitly required
%if %{without pythran}
sed -i '/pythran/d' pyproject.toml
%endif
# Loosen the lower bound on numpy
sed -i "/numpy.*python_version=='3.12'/s/1\.26\.0/1\.24\.4/" pyproject.toml
@ -305,6 +306,9 @@ popd
%endif
%changelog
* Thu Nov 30 2023 Karolina Surma <ksurma@redhat.com> - 1.11.3-3
- Fix the build without pythran
* Wed Nov 01 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.11.3-2
- Patch error collecting tests with pytest-xdist