From: Ole Streicher <olebole@debian.org>
Date: Mon, 18 Nov 2024 16:19:45 +0100
Subject: Adjust f2py executable name

Closes: #1081693
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 584d045..b580b4b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,7 @@ find_package(PythonExtensions REQUIRED)
 find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
 find_package(F2PY REQUIRED)
 find_package(Boost COMPONENTS python numpy REQUIRED)
+set(F2PY_EXECUTABLE "${PYTHON_EXECUTABLE}" "-m" "numpy.f2py")
 
 if(SKBUILD)
     message(STATUS "The project is built using scikit-build")
