[meta-virtualization] [PATCH] openvswitch: force PYTHON to python3

Mark Asselstine mark.asselstine at windriver.com
Mon Aug 21 13:07:10 PDT 2017


Openvswitch has been created to search for and use both py2 and py3,
with a preference for py2. There is no configure option to force the
use of py3 only, and many of the scripts only use the value of PYTHON
and not PYTHON3 (again there is a general preference for py2). In
order to force this issue we set PYTHON to 'python3'. This isn't ideal
but allows for the desired outcome without us having to carry changes
against upstream OVS.

During our py3 work with OVS this change was identified but for some
reason was not included as part of the already merged changes.

Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 recipes-networking/openvswitch/openvswitch.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 9d7f0f3..ab5a7e4 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -34,6 +34,7 @@ SRC_URI = "\
 	"
 
 EXTRA_OECONF += "\
+	PYTHON=python3 \
 	PYTHON3=python3 \
 	PERL=${bindir}/perl \
 	"
-- 
2.7.4



More information about the meta-virtualization mailing list