From 8089e92d77bc11051463580eb0b0687e768bc8d2 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Mon, 2 Nov 2020 14:19:21 +0800 Subject: open-model-zoo: switch shebang to python3 python2 is EOL, so switch shebang to python3 Signed-off-by: Changqing Li Signed-off-by: Anuj Mittal --- .../open-model-zoo/0001-switch-to-python3.patch | 38 ++++++++++++++++++++++ .../opencv/open-model-zoo_2021.1.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/open-model-zoo/0001-switch-to-python3.patch (limited to 'dynamic-layers') 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 @@ +From 4dd5d9c7042b421c929bece05ee162b8827dc568 Mon Sep 17 00:00:00 2001 +From: Changqing Li +Date: Mon, 2 Nov 2020 11:44:33 +0800 +Subject: [PATCH] switch to python3 + +Upstream-Status: Submitted +[https://github.com/openvinotoolkit/open_model_zoo/pull/1701/commits/0261e21e63b84cc4e91b220f4a84ec52b5678e2c; +https://github.com/gflags/gflags/pull/318#issuecomment-719466350] + +Signed-off-by: Changqing Li +--- + .../speech_recognition_demo/speech_recognition_demo.py | 2 +- + thirdparty/gflags/test/gflags_build.py.in | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/python_demos/speech_recognition_demo/speech_recognition_demo.py b/python_demos/speech_recognition_demo/speech_recognition_demo.py +index 6e8ff534..d28ccddc 100755 +--- a/python_demos/speech_recognition_demo/speech_recognition_demo.py ++++ b/python_demos/speech_recognition_demo/speech_recognition_demo.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + # + # Copyright (C) 2019-2020 Intel Corporation + # SPDX-License-Identifier: Apache-2.0 +diff --git a/thirdparty/gflags/test/gflags_build.py.in b/thirdparty/gflags/test/gflags_build.py.in +index a8cba2bf..559163ef 100644 +--- a/thirdparty/gflags/test/gflags_build.py.in ++++ b/thirdparty/gflags/test/gflags_build.py.in +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import os + import sys +-- +2.17.1 + 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 \ deep learning inference applications." SRC_URI = "git://github.com/opencv/open_model_zoo.git;protocol=git;branch=master \ + file://0001-switch-to-python3.patch \ " SRCREV = "75ec8ad4b6c4fd7fb161ae9d2c3056281b2443de" -- cgit v1.2.3-54-g00ecf