Skip to content

build: disable Python2 detection by default#24775

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
opencv-pushbot:gitee/alalek/build_python2_disable_by_default
Dec 27, 2023
Merged

build: disable Python2 detection by default#24775
opencv-pushbot merged 1 commit intoopencv:4.xfrom
opencv-pushbot:gitee/alalek/build_python2_disable_by_default

Conversation

@opencv-alalek
Copy link
Copy Markdown
Contributor

@opencv-alalek opencv-alalek commented Dec 26, 2023

  • Updated CI checks

To avoid messages like these:

-- Found PythonInterp: C:/Python-3.9/python.exe (found suitable version "3.9", minimum required is "2.7") 
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
  CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:

  PYTHON_EXECUTABLE=C:/Python-3.9/python.exe

  PYTHON_VERSION_STRING=3.9

  Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
  or environment variables

Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:271 (find_python)
  CMakeLists.txt:660 (include)


-- Could NOT find Python2 (missing: Python2_EXECUTABLE Interpreter) 
    Reason given by package: 
        Interpreter: Wrong major version for the interpreter "C:/Python-3.9/python.exe"

https://github.com/opencv/opencv/actions/runs/7330644728/job/19964564965?pr=24773#step:12:36

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@opencv-pushbot opencv-pushbot merged commit 1453e79 into opencv:4.x Dec 27, 2023
@asmorkalov asmorkalov mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants