summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/python/python-setuptools.inc2
-rw-r--r--meta/recipes-devtools/python/python3-setuptools/0001-change-shebang-to-python3.patch36
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-setuptools.inc b/meta/recipes-devtools/python/python-setuptools.inc
index f7c3202fde..07c2f8b216 100644
--- a/meta/recipes-devtools/python/python-setuptools.inc
+++ b/meta/recipes-devtools/python/python-setuptools.inc
@@ -10,6 +10,8 @@ inherit pypi
10 10
11SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" 11SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
12 12
13SRC_URI += "file://0001-change-shebang-to-python3.patch"
14
13SRC_URI[md5sum] = "0c956eea142af9c2b02d72e3c042af30" 15SRC_URI[md5sum] = "0c956eea142af9c2b02d72e3c042af30"
14SRC_URI[sha256sum] = "89c6e6011ec2f6d57d43a3f9296c4ef022c2cbf49bab26b407fe67992ae3397f" 16SRC_URI[sha256sum] = "89c6e6011ec2f6d57d43a3f9296c4ef022c2cbf49bab26b407fe67992ae3397f"
15 17
diff --git a/meta/recipes-devtools/python/python3-setuptools/0001-change-shebang-to-python3.patch b/meta/recipes-devtools/python/python3-setuptools/0001-change-shebang-to-python3.patch
new file mode 100644
index 0000000000..33af8daed7
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-setuptools/0001-change-shebang-to-python3.patch
@@ -0,0 +1,36 @@
1From c39d0896930e25c224cc897660fc8511ccae30c8 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 23 Apr 2020 10:01:12 +0000
4Subject: [PATCH] change shebang to python3
5
6Upstream-Status: Pending
7
8Signed-off-by: Changqing Li <changqing.li@windriver.com>
9---
10 pkg_resources/_vendor/appdirs.py | 2 +-
11 setuptools/command/easy_install.py | 2 +-
12 2 files changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/pkg_resources/_vendor/appdirs.py b/pkg_resources/_vendor/appdirs.py
15index ae67001..933e398 100644
16--- a/pkg_resources/_vendor/appdirs.py
17+++ b/pkg_resources/_vendor/appdirs.py
18@@ -1,4 +1,4 @@
19-#!/usr/bin/env python
20+#!/usr/bin/env python3
21 # -*- coding: utf-8 -*-
22 # Copyright (c) 2005-2010 ActiveState Software Inc.
23 # Copyright (c) 2013 Eddy Petrișor
24diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
25index abca1ae..6bcdc98 100644
26--- a/setuptools/command/easy_install.py
27+++ b/setuptools/command/easy_install.py
28@@ -1,4 +1,4 @@
29-#!/usr/bin/env python
30+#!/usr/bin/env python3
31 """
32 Easy Install
33 ------------
34--
352.24.1
36