|
|
|
@ -135,10 +135,14 @@ if(NOT OPENCV_SKIP_PYTHON_LOADER AND DEFINED OPENCV_PYTHON_INSTALL_PATH) |
|
|
|
|
set(OPENCV_PYTHON_INSTALL_PATH_SETUPVARS "${OPENCV_PYTHON_INSTALL_PATH}" CACHE INTERNAL "") |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(NOT " ${PYTHON}" STREQUAL " PYTHON" AND DEFINED OPENCV_${PYTHON}_INSTALL_PATH) |
|
|
|
|
set(__python_binary_install_path "${OPENCV_${PYTHON}_INSTALL_PATH}") |
|
|
|
|
elseif(OPENCV_SKIP_PYTHON_LOADER AND DEFINED ${PYTHON}_PACKAGES_PATH) |
|
|
|
|
set(__python_binary_install_path "${${PYTHON}_PACKAGES_PATH}") |
|
|
|
|
if(OPENCV_SKIP_PYTHON_LOADER) |
|
|
|
|
if(DEFINED OPENCV_${PYTHON}_INSTALL_PATH) |
|
|
|
|
set(__python_binary_install_path "${OPENCV_${PYTHON}_INSTALL_PATH}") |
|
|
|
|
elseif(DEFINED ${PYTHON}_PACKAGES_PATH) |
|
|
|
|
set(__python_binary_install_path "${${PYTHON}_PACKAGES_PATH}") |
|
|
|
|
else() |
|
|
|
|
message(FATAL_ERROR "Specify 'OPENCV_${PYTHON}_INSTALL_PATH' variable") |
|
|
|
|
endif() |
|
|
|
|
else() |
|
|
|
|
ocv_assert(DEFINED OPENCV_PYTHON_INSTALL_PATH) |
|
|
|
|
set(__python_binary_install_path "${OPENCV_PYTHON_INSTALL_PATH}/${__python_loader_subdir}python-${${PYTHON}_VERSION_MAJOR}.${${PYTHON}_VERSION_MINOR}") |
|
|
|
|