summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2020-11-02 14:19:21 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2020-11-02 14:38:59 +0800
commit8089e92d77bc11051463580eb0b0687e768bc8d2 (patch)
tree52628dc46fd72b2840b6aa820ed8900b04112895 /dynamic-layers
parent2e70694b20ca390e4c143da31ef192ecd5528665 (diff)
downloadmeta-intel-8089e92d77bc11051463580eb0b0687e768bc8d2.tar.gz
open-model-zoo: switch shebang to python3
python2 is EOL, so switch shebang to python3 Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers')
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-switch-to-python3.patch38
-rw-r--r--dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.1.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-switch-to-python3.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-switch-to-python3.patch
new file mode 100644
index 00000000..8bfb9ac9
--- /dev/null
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-switch-to-python3.patch
@@ -0,0 +1,38 @@
1From 4dd5d9c7042b421c929bece05ee162b8827dc568 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 2 Nov 2020 11:44:33 +0800
4Subject: [PATCH] switch to python3
5
6Upstream-Status: Submitted
7[https://github.com/openvinotoolkit/open_model_zoo/pull/1701/commits/0261e21e63b84cc4e91b220f4a84ec52b5678e2c;
8https://github.com/gflags/gflags/pull/318#issuecomment-719466350]
9
10Signed-off-by: Changqing Li <changqing.li@windriver.com>
11---
12 .../speech_recognition_demo/speech_recognition_demo.py | 2 +-
13 thirdparty/gflags/test/gflags_build.py.in | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/python_demos/speech_recognition_demo/speech_recognition_demo.py b/python_demos/speech_recognition_demo/speech_recognition_demo.py
17index 6e8ff534..d28ccddc 100755
18--- a/python_demos/speech_recognition_demo/speech_recognition_demo.py
19+++ b/python_demos/speech_recognition_demo/speech_recognition_demo.py
20@@ -1,4 +1,4 @@
21-#!/usr/bin/env python
22+#!/usr/bin/env python3
23 #
24 # Copyright (C) 2019-2020 Intel Corporation
25 # SPDX-License-Identifier: Apache-2.0
26diff --git a/thirdparty/gflags/test/gflags_build.py.in b/thirdparty/gflags/test/gflags_build.py.in
27index a8cba2bf..559163ef 100644
28--- a/thirdparty/gflags/test/gflags_build.py.in
29+++ b/thirdparty/gflags/test/gflags_build.py.in
30@@ -1,4 +1,4 @@
31-#!/usr/bin/env python
32+#!/usr/bin/env python3
33
34 import os
35 import sys
36--
372.17.1
38
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.1.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.1.bb
index 82ca4af8..c5efbfc8 100644
--- a/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.1.bb
+++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo_2021.1.bb
@@ -5,6 +5,7 @@ models and a set of demos to expedite development of high-performance \
5deep learning inference applications." 5deep learning inference applications."
6 6
7SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=git;branch=master \ 7SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=git;branch=master \
8 file://0001-switch-to-python3.patch \
8 " 9 "
9 10
10SRCREV = "75ec8ad4b6c4fd7fb161ae9d2c3056281b2443de" 11SRCREV = "75ec8ad4b6c4fd7fb161ae9d2c3056281b2443de"