From 9c7d8c9833ab1e6664e7f2b9d85d19f8f5718022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 21 Nov 2023 20:09:32 +0100 Subject: [PATCH] Fix the --without pythran build Apparently, SCIPY_USE_PYTHRAN=0 only works with setuptools. --- scipy.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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