Skip to contentSkip to conversation

opencv: remove redundant build dependency on python2

PATCH In review Dmitry Rozhkov 2 participants 2 messages Mar 31, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opencv: remove redundant build dependency on python2

The recipe opencv_3.2.bb inherits to either distutils-base or distutils3-base classes or both which do add appropriate build dependency on python or python3 respectively. There's no need to have python in DEPENDS explicitly.

It can even make things needlessly complicated in case a user wants to build python3-only images.

The redundant build dependency on python is removed from DEPENDS.

---
 meta-oe/recipes-support/opencv/opencv_3.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/opencv/opencv_3.2.bb +1 -1
index f47347a..f50bc05 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2b2f8752cc5edf504d283107d033f544"
 ARM_INSTRUCTION_SET_armv4 = "arm"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 
-DEPENDS = "libtool swig swig-native python bzip2 zlib glib-2.0 libwebp"
+DEPENDS = "libtool swig swig-native bzip2 zlib glib-2.0 libwebp"
 
 SRCREV_opencv = "70bbf17b133496bd7d54d034b0f94bd869e0e810"
 SRCREV_contrib = "86342522b0eb2b16fa851c020cc4e0fef4e010b7"
Signature · 1 line
2.9.3
#1 lore raw
Quoted 8 lines · Dmitry Rozhkov

The recipe opencv_3.2.bb inherits to either distutils-base or distutils3-base classes or both which do add appropriate build dependency on python or python3 respectively. There's no need to have python in DEPENDS explicitly.

It can even make things needlessly complicated in case a user wants to build python3-only images.

right. Looks ok.

Quoted 21 lines

The redundant build dependency on python is removed from DEPENDS.

---
 meta-oe/recipes-support/opencv/opencv_3.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/opencv/opencv_3.2.bb +1 -1
index f47347a..f50bc05 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2b2f8752cc5edf504d283107d033f544"
 ARM_INSTRUCTION_SET_armv4 = "arm"
 ARM_INSTRUCTION_SET_armv5 = "arm"
 
-DEPENDS = "libtool swig swig-native python bzip2 zlib glib-2.0 libwebp"
+DEPENDS = "libtool swig swig-native bzip2 zlib glib-2.0 libwebp"
 
 SRCREV_opencv = "70bbf17b133496bd7d54d034b0f94bd869e0e810"
 SRCREV_contrib = "86342522b0eb2b16fa851c020cc4e0fef4e010b7"