From 3ab8fb174a13df1f7fe4c341518a51e7ed09b46a Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 24 Sep 2019 14:54:40 -0400 Subject: [PATCH] FindF2PY: Ensure python version specific of f2py executable is looked up first See #449 Co-authored-by: Ben --- (CHANGES.rst | 6 +++++-) removed from package skbuild/resources/cmake/FindF2PY.cmake | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/skbuild/resources/cmake/FindF2PY.cmake b/skbuild/resources/cmake/FindF2PY.cmake index 0ab0fdbe..22d669c2 100644 --- a/skbuild/resources/cmake/FindF2PY.cmake +++ b/skbuild/resources/cmake/FindF2PY.cmake @@ -66,7 +66,7 @@ # case, CMake is not used to find the compiler and configure the associated build system. # -find_program(F2PY_EXECUTABLE NAMES f2py f2py${PYTHON_VERSION_MAJOR}) +find_program(F2PY_EXECUTABLE NAMES f2py${PYTHON_VERSION_MAJOR} f2py) if(F2PY_EXECUTABLE) # extract the version string