[opensuse-python] numpy package moved /usr/bin/f2py to update-alternatives
Hi, I noticed in the latest revision of d:l:p:numeric/numpy, Matej changed the f2py executable to use update-alternatives and removed the f2py3* links. This broke python-slycot and will possibly break other projects using python-scikit-build and f2py. If this change remains, we will need to patch the python-scikit-build package: diff --git a/skbuild/resources/cmake/FindF2PY.cmake b/skbuild/resources/cmake/FindF2PY.cmake index b15342c..7bfe07d 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${PYTHON_VERSION_MAJOR} f2py) +find_program(F2PY_EXECUTABLE NAMES f2py-${PYTHON_VERSION} f2py${PYTHON_VERSION_MAJOR} f2py) # XXX This is required to support NumPy < v0.15.0. See note in module documentation above. if(NOT F2PY_EXECUTABLE) Regards, Ben -- To unsubscribe, e-mail: opensuse-python+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-python+owner@opensuse.org
Hi, That is a bug in the u-a conversion, Matej needs to do it in a similar way we do the same in python-pip where we provide the pip2 and pip3 esp because of this. Cheers Tom Ben Greiner píše v Út 07. 04. 2020 v 12:50 +0200:
Hi,
I noticed in the latest revision of d:l:p:numeric/numpy, Matej changed the f2py executable to use update-alternatives and removed the f2py3* links. This broke python-slycot and will possibly break other projects using python-scikit-build and f2py.
If this change remains, we will need to patch the python-scikit-build package:
diff --git a/skbuild/resources/cmake/FindF2PY.cmake b/skbuild/resources/cmake/FindF2PY.cmake index b15342c..7bfe07d 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${PYTHON_VERSION_MAJOR} f2py) +find_program(F2PY_EXECUTABLE NAMES f2py-${PYTHON_VERSION} f2py${PYTHON_VERSION_MAJOR} f2py)
# XXX This is required to support NumPy < v0.15.0. See note in module documentation above. if(NOT F2PY_EXECUTABLE)
Regards,
Ben
Should be fixed by [1]. Tom [1] https://build.opensuse.org/package/rdiff/devel:languages:python:numeric/python-numpy?linkrev=base&rev=51 Tomas Chvatal píše v Út 07. 04. 2020 v 11:27 +0000:
Hi,
That is a bug in the u-a conversion,
Matej needs to do it in a similar way we do the same in python-pip where we provide the pip2 and pip3 esp because of this.
Cheers
Tom
Ben Greiner píše v Út 07. 04. 2020 v 12:50 +0200:
Hi,
I noticed in the latest revision of d:l:p:numeric/numpy, Matej changed the f2py executable to use update-alternatives and removed the f2py3* links. This broke python-slycot and will possibly break other projects using python-scikit-build and f2py.
If this change remains, we will need to patch the python-scikit- build package:
diff --git a/skbuild/resources/cmake/FindF2PY.cmake b/skbuild/resources/cmake/FindF2PY.cmake index b15342c..7bfe07d 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${PYTHON_VERSION_MAJOR} f2py) +find_program(F2PY_EXECUTABLE NAMES f2py-${PYTHON_VERSION} f2py${PYTHON_VERSION_MAJOR} f2py)
# XXX This is required to support NumPy < v0.15.0. See note in module documentation above. if(NOT F2PY_EXECUTABLE)
Regards,
Ben
Thanks for looking into this so quickly! I have submitted SR 791975 to the python-scikit-build package to actually make use of it. The related upstream PR has been merged quite some time ago but no new release was made yet. Ben Am 07.04.20 um 13:58 schrieb Tomas Chvatal:
Should be fixed by [1].
Tom
Tomas Chvatal píše v Út 07. 04. 2020 v 11:27 +0000:
Hi,
That is a bug in the u-a conversion,
Matej needs to do it in a similar way we do the same in python-pip where we provide the pip2 and pip3 esp because of this.
Cheers
Tom
Ben Greiner píše v Út 07. 04. 2020 v 12:50 +0200:
Hi,
I noticed in the latest revision of d:l:p:numeric/numpy, Matej changed the f2py executable to use update-alternatives and removed the f2py3* links. This broke python-slycot and will possibly break other projects using python-scikit-build and f2py.
If this change remains, we will need to patch the python-scikit- build package:
diff --git a/skbuild/resources/cmake/FindF2PY.cmake b/skbuild/resources/cmake/FindF2PY.cmake index b15342c..7bfe07d 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${PYTHON_VERSION_MAJOR} f2py) +find_program(F2PY_EXECUTABLE NAMES f2py-${PYTHON_VERSION} f2py${PYTHON_VERSION_MAJOR} f2py)
# XXX This is required to support NumPy < v0.15.0. See note in module documentation above. if(NOT F2PY_EXECUTABLE)
Regards,
Ben
participants (3)
-
Ben Greiner
-
Benjamin Greiner
-
Tomas Chvatal