From 3967bac754c19a0544593efaddad07e0668bd29cf7c0bd83f63058dd176e9ed1 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 10 Jul 2022 21:55:20 +0000 Subject: [PATCH] Accepting request 988213 from home:bnavigator:branches:devel:languages:python:numeric - Restore finding correctly flavored f2py during build OBS-URL: https://build.opensuse.org/request/show/988213 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-slycot?expand=0&rev=38 --- python-slycot.changes | 5 +++++ python-slycot.spec | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/python-slycot.changes b/python-slycot.changes index 44ca0d4..b39e48d 100644 --- a/python-slycot.changes +++ b/python-slycot.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 10 21:53:40 UTC 2022 - Ben Greiner + +- Restore finding correctly flavored f2py during build + ------------------------------------------------------------------- Sat Jul 9 12:04:37 UTC 2022 - Ben Greiner diff --git a/python-slycot.spec b/python-slycot.spec index f55831a..fcf5ab4 100644 --- a/python-slycot.spec +++ b/python-slycot.spec @@ -57,6 +57,11 @@ export CMAKE_GENERATOR="Unix Makefiles" # generic BLAS/LAPACK binaries so that update-alternatives can choose # the implementation for runtime. export BLA_VENDOR="Generic" +%{python_expand # give the pep517 build the correct f2py flavor +mkdir -p build/buildbin +ln -s %{_bindir}/f2py-%{$python_bin_suffix} build/buildbin/f2py3 +} +export PATH=$PWD/build/buildbin:$PATH %pyproject_wheel %install