Fix the --without pythran build

Apparently, SCIPY_USE_PYTHRAN=0 only works with setuptools.
This commit is contained in:
Miro Hrončok 2023-11-21 20:09:32 +01:00 committed by Nikola Forró
parent b3bae532eb
commit 9c7d8c9833

View File

@ -129,7 +129,7 @@ Scipy test files
cat >> pyproject.toml << EOF cat >> pyproject.toml << EOF
[tool.meson-python.args] [tool.meson-python.args]
setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'] setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}]
EOF EOF
# Docs won't build unless the .dat files are specified here # Docs won't build unless the .dat files are specified here
@ -180,7 +180,6 @@ sed -i "s/\('has_openmemstream', \)'0'/\1'1'/" scipy/_lib/meson.build
%pyproject_buildrequires -R %pyproject_buildrequires -R
%build %build
export SCIPY_USE_PYTHRAN=0%{?with_pythran}
%pyproject_wheel %pyproject_wheel
%if %{with doc} %if %{with doc}
@ -195,7 +194,6 @@ done
%endif %endif
%install %install
export SCIPY_USE_PYTHRAN=0%{?with_pythran}
%pyproject_install %pyproject_install
%pyproject_save_files scipy %pyproject_save_files scipy