opencv-4.8.1-drop-python2-detection.patch 1.0 KB

123456789101112131415161718192021222324
  1. From: Paul Zander <negril.nx+gentoo@gmail.com>
  2. Python2 is long gone. So don't try finding it.
  3. diff --git a/cmake/OpenCVDetectPython.cmake b/cmake/OpenCVDetectPython.cmake
  4. index 599b2eb..345e3ef 100644
  5. --- a/cmake/OpenCVDetectPython.cmake
  6. +++ b/cmake/OpenCVDetectPython.cmake
  7. @@ -268,14 +268,6 @@ if(OPENCV_PYTHON_SKIP_DETECTION)
  8. return()
  9. endif()
  10. -find_python("" "${MIN_VER_PYTHON2}" PYTHON2_LIBRARY PYTHON2_INCLUDE_DIR
  11. - PYTHON2INTERP_FOUND PYTHON2_EXECUTABLE PYTHON2_VERSION_STRING
  12. - PYTHON2_VERSION_MAJOR PYTHON2_VERSION_MINOR PYTHON2LIBS_FOUND
  13. - PYTHON2LIBS_VERSION_STRING PYTHON2_LIBRARIES PYTHON2_LIBRARY
  14. - PYTHON2_DEBUG_LIBRARIES PYTHON2_LIBRARY_DEBUG PYTHON2_INCLUDE_PATH
  15. - PYTHON2_INCLUDE_DIR PYTHON2_INCLUDE_DIR2 PYTHON2_PACKAGES_PATH
  16. - PYTHON2_NUMPY_INCLUDE_DIRS PYTHON2_NUMPY_VERSION)
  17. -
  18. option(OPENCV_PYTHON3_VERSION "Python3 version" "")
  19. find_python("${OPENCV_PYTHON3_VERSION}" "${MIN_VER_PYTHON3}" PYTHON3_LIBRARY PYTHON3_INCLUDE_DIR
  20. PYTHON3INTERP_FOUND PYTHON3_EXECUTABLE PYTHON3_VERSION_STRING