mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 08:18:43 +01:00
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: 4a4fabaa8f6915513a3b1ef2268c402e96eca888) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
61 lines
1.9 KiB
Diff
61 lines
1.9 KiB
Diff
From e7a00e9b5104ae2fbcea32a35c85760b77fae7e5 Mon Sep 17 00:00:00 2001
|
|
From: Changqing Li <changqing.li@windriver.com>
|
|
Date: Thu, 23 Apr 2020 09:42:10 +0000
|
|
Subject: [PATCH] change shebang to python3
|
|
|
|
Upstream-Status: Pending
|
|
|
|
pip will drop support of python2 from 21.0
|
|
|
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
---
|
|
src/pip/_internal/__init__.py | 2 +-
|
|
src/pip/_vendor/appdirs.py | 2 +-
|
|
src/pip/_vendor/chardet/cli/chardetect.py | 2 +-
|
|
src/pip/_vendor/requests/certs.py | 2 +-
|
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/pip/_internal/__init__.py b/src/pip/_internal/__init__.py
|
|
index 3aa8a46..e1ad179 100755
|
|
--- a/src/pip/_internal/__init__.py
|
|
+++ b/src/pip/_internal/__init__.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
import pip._internal.utils.inject_securetransport # noqa
|
|
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
|
|
|
diff --git a/src/pip/_vendor/appdirs.py b/src/pip/_vendor/appdirs.py
|
|
index 3a52b75..ad3f81d 100644
|
|
--- a/src/pip/_vendor/appdirs.py
|
|
+++ b/src/pip/_vendor/appdirs.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
# Copyright (c) 2005-2010 ActiveState Software Inc.
|
|
# Copyright (c) 2013 Eddy Petrișor
|
|
diff --git a/src/pip/_vendor/chardet/cli/chardetect.py b/src/pip/_vendor/chardet/cli/chardetect.py
|
|
index c61136b..a497e98 100644
|
|
--- a/src/pip/_vendor/chardet/cli/chardetect.py
|
|
+++ b/src/pip/_vendor/chardet/cli/chardetect.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
"""
|
|
Script which takes one or more file paths and reports on their detected
|
|
encodings
|
|
diff --git a/src/pip/_vendor/requests/certs.py b/src/pip/_vendor/requests/certs.py
|
|
index 06a594e..bfa7839 100644
|
|
--- a/src/pip/_vendor/requests/certs.py
|
|
+++ b/src/pip/_vendor/requests/certs.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
--
|
|
2.24.1
|
|
|