Fix the --without pythran build
Apparently, SCIPY_USE_PYTHRAN=0 only works with setuptools.
This commit is contained in:
parent
b3bae532eb
commit
9c7d8c9833
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user