From 1cc80f10bab4fed9d47d035666d913235dd9f319 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Wed, 24 Sep 2014 14:23:52 +0400 Subject: [PATCH] Added implicit dependency from python and python-py to debian packages. --- cmake/OpenCVPackaging.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/OpenCVPackaging.cmake b/cmake/OpenCVPackaging.cmake index 8cd94ea24..732eae9e4 100644 --- a/cmake/OpenCVPackaging.cmake +++ b/cmake/OpenCVPackaging.cmake @@ -69,7 +69,11 @@ set(CPACK_COMPONENT_dev_DEPENDS libs) set(CPACK_COMPONENT_docs_DEPENDS libs) set(CPACK_COMPONENT_java_DEPENDS libs) set(CPACK_COMPONENT_python_DEPENDS libs) +set(CPACK_DEB_python_PACKAGE_DEPENDS "python${PYTHON_VERSION_MAJOR_MINOR}") set(CPACK_COMPONENT_tests_DEPENDS libs) +if (HAVE_opencv_python) + set(CPACK_DEB_tests_PACKAGE_DEPENDS "python${PYTHON_VERSION_MAJOR_MINOR}, python-py | python-pytest") +endif() if(HAVE_CUDA) string(REPLACE "." "-" cuda_version_suffix ${CUDA_VERSION})