summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch')
-rw-r--r--meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch b/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch
new file mode 100644
index 0000000000..00cffe169b
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-pip/0001-change-shebang-to-python3.patch
@@ -0,0 +1,60 @@
1From e7a00e9b5104ae2fbcea32a35c85760b77fae7e5 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Thu, 23 Apr 2020 09:42:10 +0000
4Subject: [PATCH] change shebang to python3
5
6Upstream-Status: Pending
7
8pip will drop support of python2 from 21.0
9
10Signed-off-by: Changqing Li <changqing.li@windriver.com>
11---
12 src/pip/_internal/__init__.py | 2 +-
13 src/pip/_vendor/appdirs.py | 2 +-
14 src/pip/_vendor/chardet/cli/chardetect.py | 2 +-
15 src/pip/_vendor/requests/certs.py | 2 +-
16 4 files changed, 4 insertions(+), 4 deletions(-)
17
18diff --git a/src/pip/_internal/__init__.py b/src/pip/_internal/__init__.py
19index 3aa8a46..e1ad179 100755
20--- a/src/pip/_internal/__init__.py
21+++ b/src/pip/_internal/__init__.py
22@@ -1,4 +1,4 @@
23-#!/usr/bin/env python
24+#!/usr/bin/env python3
25 import pip._internal.utils.inject_securetransport # noqa
26 from pip._internal.utils.typing import MYPY_CHECK_RUNNING
27
28diff --git a/src/pip/_vendor/appdirs.py b/src/pip/_vendor/appdirs.py
29index 3a52b75..ad3f81d 100644
30--- a/src/pip/_vendor/appdirs.py
31+++ b/src/pip/_vendor/appdirs.py
32@@ -1,4 +1,4 @@
33-#!/usr/bin/env python
34+#!/usr/bin/env python3
35 # -*- coding: utf-8 -*-
36 # Copyright (c) 2005-2010 ActiveState Software Inc.
37 # Copyright (c) 2013 Eddy Petrișor
38diff --git a/src/pip/_vendor/chardet/cli/chardetect.py b/src/pip/_vendor/chardet/cli/chardetect.py
39index c61136b..a497e98 100644
40--- a/src/pip/_vendor/chardet/cli/chardetect.py
41+++ b/src/pip/_vendor/chardet/cli/chardetect.py
42@@ -1,4 +1,4 @@
43-#!/usr/bin/env python
44+#!/usr/bin/env python3
45 """
46 Script which takes one or more file paths and reports on their detected
47 encodings
48diff --git a/src/pip/_vendor/requests/certs.py b/src/pip/_vendor/requests/certs.py
49index 06a594e..bfa7839 100644
50--- a/src/pip/_vendor/requests/certs.py
51+++ b/src/pip/_vendor/requests/certs.py
52@@ -1,4 +1,4 @@
53-#!/usr/bin/env python
54+#!/usr/bin/env python3
55 # -*- coding: utf-8 -*-
56
57 """
58--
592.24.1
60