Added dependency from numpy to debian package with python bindings.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Fri, 30 Jan 2015 09:26:08 +0000 (12:26 +0300)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Fri, 30 Jan 2015 09:27:33 +0000 (12:27 +0300)
cmake/OpenCVPackaging.cmake

index 3d63c09..cf2faee 100644 (file)
@@ -69,10 +69,10 @@ 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_DEB_python_PACKAGE_DEPENDS "python-numpy (>=${PYTHON_NUMPY_VERSION}), 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")
+  set(CPACK_DEB_tests_PACKAGE_DEPENDS "python-numpy (>=${PYTHON_NUMPY_VERSION}), python${PYTHON_VERSION_MAJOR_MINOR}, python-py | python-pytest")
 endif()
 
 if(HAVE_CUDA)