From 78bda829d92c6e9c4022fa40f2691237d6b9a70b25cce4c9739e17c8af6f71c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 Apr 2020 12:18:36 +0000 Subject: [PATCH] Accepting request 791975 from home:bnavigator:branches:devel:languages:python:numeric - Add scikit-build-pr450-findf2py.patch to find the flavor specific f2py - see discussion on opensuse OBS-URL: https://build.opensuse.org/request/show/791975 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-build?expand=0&rev=5 --- python-scikit-build.changes | 6 ++++++ python-scikit-build.spec | 2 ++ scikit-build-pr450-findf2py.patch | 27 +++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 scikit-build-pr450-findf2py.patch diff --git a/python-scikit-build.changes b/python-scikit-build.changes index 517771c..0d88525 100644 --- a/python-scikit-build.changes +++ b/python-scikit-build.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 7 12:04:36 UTC 2020 - Benjamin Greiner + +- Add scikit-build-pr450-findf2py.patch to find the flavor specific + f2py + ------------------------------------------------------------------- Tue Mar 10 10:33:57 UTC 2020 - Tomáš Chvátal diff --git a/python-scikit-build.spec b/python-scikit-build.spec index 4641418..d6ff6e2 100644 --- a/python-scikit-build.spec +++ b/python-scikit-build.spec @@ -25,6 +25,7 @@ License: MIT URL: https://github.com/scikit-build/scikit-build Source: https://files.pythonhosted.org/packages/source/s/scikit-build/scikit-build-%{version}.tar.gz Patch0: python38.patch +Patch1: scikit-build-pr450-findf2py.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools >= 28.0.0} BuildRequires: fdupes @@ -64,6 +65,7 @@ Improved build system generator for Python C/C++/Fortran/Cython extensions %prep %setup -q -n scikit-build-%{version} %patch0 -p1 +%patch1 -p1 %build %python_build diff --git a/scikit-build-pr450-findf2py.patch b/scikit-build-pr450-findf2py.patch new file mode 100644 index 0000000..bd2ae81 --- /dev/null +++ b/scikit-build-pr450-findf2py.patch @@ -0,0 +1,27 @@ +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