From b8acd8cd2bd81bcdf1d2b1ea07366efe07a6b0f4 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 8 Oct 2022 22:58:07 +0200 Subject: [PATCH] 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+. --- numpy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy.spec b/numpy.spec index 95e31fc..70aad59 100644 --- a/numpy.spec +++ b/numpy.spec @@ -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