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

View File

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