File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -1000,6 +1000,12 @@ if(COMMAND ocv_pylint_finalize)
1000
1000
ocv_pylint_add_directory_recurse (${CMAKE_CURRENT_LIST_DIR} /samples/python/tutorial_code )
1001
1001
ocv_pylint_finalize ()
1002
1002
endif ()
1003
+ if (TARGET check_pylint )
1004
+ message (STATUS "Registered 'check_pylint' target: using ${PYLINT_EXECUTABLE} (ver: ${PYLINT_VERSION} ), checks: ${PYLINT_TOTAL_TARGETS} " )
1005
+ endif ()
1006
+ if (TARGET check_flake8 )
1007
+ message (STATUS "Registered 'check_flake8' target: using ${FLAKE8_EXECUTABLE} (ver: ${FLAKE8_VERSION} )" )
1008
+ endif ()
1003
1009
1004
1010
if (OPENCV_GENERATE_SETUPVARS )
1005
1011
include (cmake/OpenCVGenSetupVars.cmake )
@@ -1633,12 +1639,6 @@ endif()
1633
1639
1634
1640
status ("" )
1635
1641
status (" Python (for build):" PYTHON_DEFAULT_AVAILABLE THEN "${PYTHON_DEFAULT_EXECUTABLE} " ELSE NO )
1636
- if (PYLINT_FOUND AND PYLINT_EXECUTABLE )
1637
- status (" Pylint:" PYLINT_FOUND THEN "${PYLINT_EXECUTABLE} (ver: ${PYLINT_VERSION} , checks: ${PYLINT_TOTAL_TARGETS} )" ELSE NO )
1638
- endif ()
1639
- if (FLAKE8_FOUND AND FLAKE8_EXECUTABLE )
1640
- status (" Flake8:" FLAKE8_FOUND THEN "${FLAKE8_EXECUTABLE} (ver: ${FLAKE8_VERSION} )" ELSE NO )
1641
- endif ()
1642
1642
1643
1643
# ========================== java ==========================
1644
1644
if (BUILD_JAVA )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if(PYLINT_EXECUTABLE AND NOT DEFINED PYLINT_VERSION)
16
16
execute_process (COMMAND ${PYLINT_EXECUTABLE} --version RESULT_VARIABLE _result OUTPUT_VARIABLE PYLINT_VERSION_RAW )
17
17
if (NOT _result EQUAL 0 )
18
18
ocv_clear_vars (PYLINT_EXECUTABLE PYLINT_VERSION )
19
- elseif (PYLINT_VERSION_RAW MATCHES "pylint([^,]*) ([0-9\\ .]+[0-9])" )
19
+ elseif (PYLINT_VERSION_RAW MATCHES "pylint([^,\n ]*) ([0-9\\ .]+[0-9])" )
20
20
set (PYLINT_VERSION "${CMAKE_MATCH_2} " )
21
21
else ()
22
22
set (PYLINT_VERSION "unknown" )
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ function(ocv_pylint_finalize)
122
122
123
123
list (LENGTH PYLINT_TARGET_ID __total )
124
124
set (PYLINT_TOTAL_TARGETS "${__total} " CACHE INTERNAL "" )
125
- message (STATUS "Pylint: registered ${__total} targets. Build 'check_pylint' target to run checks (\" cmake --build . --target check_pylint\" or \" make check_pylint\" )" )
126
125
configure_file ("${OpenCV_SOURCE_DIR} /cmake/templates/pylint.cmake.in" "${CMAKE_BINARY_DIR} /pylint.cmake" @ONLY )
127
126
128
127
add_custom_target (check_pylint
You can’t perform that action at this time.
0 commit comments