Explicitly pass prefix to setup.py install

This fixes the flatpak module build which otherwise ends up installing
into the /usr prefix (instead of /app) in F37+.
This commit is contained in:
Kalev Lember 2022-10-08 22:58:07 +02:00
parent b630888254
commit b8acd8cd2b
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ env OPENBLAS=%{_libdir} \
FFTW=%{_libdir} BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="%{optflags}" \
SETUPTOOLS_USE_DISTUTILS=stdlib
%{__python3} setup.py install --root %{buildroot}
%{__python3} setup.py install --root %{buildroot} --prefix=%{_prefix}
pushd %{buildroot}%{_bindir} &> /dev/null
ln -s f2py3 f2py.numpy
popd &> /dev/null