diff options
author | Changqing Li <changqing.li@windriver.com> | 2020-04-24 09:09:41 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-26 14:00:51 +0100 |
commit | 90f2ebbb5a4a7dd64ca8e9d93ea69353114c4527 (patch) | |
tree | 63e0f642082f44db40a0ea1e97d2cbd83434b70a /meta/recipes-devtools/python/python3-setuptools | |
parent | c57eb0a488d19216f9ad3a5c1861f6b9bf4bc4b5 (diff) | |
download | poky-90f2ebbb5a4a7dd64ca8e9d93ea69353114c4527.tar.gz |
python3-setuptools: change shebang to python3
we have offcially dropped python2, so it is possible
that our code run on python3 only host, so change
shebang to python3 to avoid error like:
python: command not found
(From OE-Core rev: c49ea8d5640d984e28ad63919e0b9ee549a4e17f)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-setuptools')
-rw-r--r-- | meta/recipes-devtools/python/python3-setuptools/0001-change-shebang-to-python3.patch | 36 |
1 files changed, 36 insertions, 0 deletions
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 @@ | |||
1 | From c39d0896930e25c224cc897660fc8511ccae30c8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Thu, 23 Apr 2020 10:01:12 +0000 | ||
4 | Subject: [PATCH] change shebang to python3 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-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 | |||
14 | diff --git a/pkg_resources/_vendor/appdirs.py b/pkg_resources/_vendor/appdirs.py | ||
15 | index 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 | ||
24 | diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py | ||
25 | index 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 | -- | ||
35 | 2.24.1 | ||
36 | |||