From 9c7d8c9833ab1e6664e7f2b9d85d19f8f5718022 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 29 2023 11:27:36 +0000 Subject: Fix the --without pythran build Apparently, SCIPY_USE_PYTHRAN=0 only works with setuptools. --- diff --git a/scipy.spec b/scipy.spec index 1509e8c..dd49912 100644 --- a/scipy.spec +++ b/scipy.spec @@ -129,7 +129,7 @@ Scipy test files cat >> pyproject.toml << EOF [tool.meson-python.args] -setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'] +setup = ['-Dblas=%{blaslib}%{blasvar}', '-Dlapack=%{blaslib}%{blasvar}'%{!?with_pythran:, '-Duse-pythran=false'}] EOF # 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 %build -export SCIPY_USE_PYTHRAN=0%{?with_pythran} %pyproject_wheel %if %{with doc} @@ -195,7 +194,6 @@ done %endif %install -export SCIPY_USE_PYTHRAN=0%{?with_pythran} %pyproject_install %pyproject_save_files scipy