mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 08:48:45 +01:00
python3-pip: upgrade 22.1.2 -> 22.2.1
reproducible.patch refreshed for new version. 0001-change-shebang-to-python3.patch removed as not needed since upstream has removed the shebang lines. License-Update: src/pip/_vendor/html5lib/LICENSE: removed since it's not it new version src/pip/_vendor/chardet/LICENSE: file format modified, change St to Street src/pip/_vendor/pygments/LICENSE: Copyright year updated to 2022 (From OE-Core rev: d69f360bb48001a4ec9220c8f935bb5fe43b4f7a) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1,115 +0,0 @@
|
||||
From dca973830d4eee3e0f79e61237c44a9dd8201641 Mon Sep 17 00:00:00 2001
|
||||
From: Trevor Gamblin <trevor.gamblin@windriver.com>
|
||||
Date: Tue, 22 Jun 2021 12:31:46 -0400
|
||||
Subject: [PATCH] change shebang to python3
|
||||
|
||||
Upstream-Status: Inappropriate (OE-specific)
|
||||
|
||||
Despite no longer supporting python2, some files in the pip source refer
|
||||
to "python" instead of "python3", so patch them as needed to ensure that
|
||||
they correctly reference the python3 binary.
|
||||
|
||||
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
|
||||
|
||||
---
|
||||
src/pip/_vendor/chardet/langbulgarianmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langgreekmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langhebrewmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langhungarianmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langrussianmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langthaimodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/langturkishmodel.py | 2 +-
|
||||
src/pip/_vendor/chardet/metadata/languages.py | 2 +-
|
||||
src/pip/_vendor/requests/certs.py | 2 +-
|
||||
9 files changed, 9 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/src/pip/_vendor/chardet/langbulgarianmodel.py b/src/pip/_vendor/chardet/langbulgarianmodel.py
|
||||
index e963a50..97ea6ce 100644
|
||||
--- a/src/pip/_vendor/chardet/langbulgarianmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langbulgarianmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langgreekmodel.py b/src/pip/_vendor/chardet/langgreekmodel.py
|
||||
index d99528e..4a127ea 100644
|
||||
--- a/src/pip/_vendor/chardet/langgreekmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langgreekmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langhebrewmodel.py b/src/pip/_vendor/chardet/langhebrewmodel.py
|
||||
index 484c652..676c1a7 100644
|
||||
--- a/src/pip/_vendor/chardet/langhebrewmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langhebrewmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langhungarianmodel.py b/src/pip/_vendor/chardet/langhungarianmodel.py
|
||||
index bbc5cda..042eae7 100644
|
||||
--- a/src/pip/_vendor/chardet/langhungarianmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langhungarianmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langrussianmodel.py b/src/pip/_vendor/chardet/langrussianmodel.py
|
||||
index 5594452..564b02e 100644
|
||||
--- a/src/pip/_vendor/chardet/langrussianmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langrussianmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langthaimodel.py b/src/pip/_vendor/chardet/langthaimodel.py
|
||||
index 9a37db5..c974879 100644
|
||||
--- a/src/pip/_vendor/chardet/langthaimodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langthaimodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/langturkishmodel.py b/src/pip/_vendor/chardet/langturkishmodel.py
|
||||
index 43f4230..7e710c3 100644
|
||||
--- a/src/pip/_vendor/chardet/langturkishmodel.py
|
||||
+++ b/src/pip/_vendor/chardet/langturkishmodel.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from pip._vendor.chardet.sbcharsetprober import SingleByteCharSetModel
|
||||
diff --git a/src/pip/_vendor/chardet/metadata/languages.py b/src/pip/_vendor/chardet/metadata/languages.py
|
||||
index 3237d5a..aa2ec7c 100644
|
||||
--- a/src/pip/_vendor/chardet/metadata/languages.py
|
||||
+++ b/src/pip/_vendor/chardet/metadata/languages.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Metadata about languages used by our model training code for our
|
||||
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 -*-
|
||||
|
||||
"""
|
||||
@@ -14,34 +14,17 @@ Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: pip-22.0.3/src/pip/_internal/req/req_install.py
|
||||
===================================================================
|
||||
--- pip-22.0.3.orig/src/pip/_internal/req/req_install.py
|
||||
+++ pip-22.0.3/src/pip/_internal/req/req_install.py
|
||||
@@ -758,7 +758,9 @@ class InstallRequirement:
|
||||
if self.is_wheel:
|
||||
assert self.local_file_path
|
||||
direct_url = None
|
||||
- if self.editable:
|
||||
+ if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
|
||||
+ direct_url = None
|
||||
+ elif self.editable:
|
||||
direct_url = direct_url_for_editable(self.unpacked_source_directory)
|
||||
elif self.original_link:
|
||||
direct_url = direct_url_from_link(
|
||||
@@ -775,6 +777,7 @@ class InstallRequirement:
|
||||
warn_script_location=warn_script_location,
|
||||
direct_url=direct_url,
|
||||
requested=self.user_supplied,
|
||||
+ root=root,
|
||||
)
|
||||
self.install_succeeded = True
|
||||
return
|
||||
Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py
|
||||
===================================================================
|
||||
--- pip-22.0.3.orig/src/pip/_internal/operations/install/wheel.py
|
||||
+++ pip-22.0.3/src/pip/_internal/operations/install/wheel.py
|
||||
@@ -436,6 +436,7 @@ def _install_wheel(
|
||||
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||
---
|
||||
src/pip/_internal/operations/install/wheel.py | 5 ++++-
|
||||
src/pip/_internal/req/req_install.py | 5 ++++-
|
||||
2 files changed, 8 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py
|
||||
index 1af8978..3e48f9b 100644
|
||||
--- a/src/pip/_internal/operations/install/wheel.py
|
||||
+++ b/src/pip/_internal/operations/install/wheel.py
|
||||
@@ -434,6 +434,7 @@ def _install_wheel(
|
||||
warn_script_location: bool = True,
|
||||
direct_url: Optional[DirectUrl] = None,
|
||||
requested: bool = False,
|
||||
@@ -49,7 +32,7 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py
|
||||
) -> None:
|
||||
"""Install a wheel.
|
||||
|
||||
@@ -612,7 +613,7 @@ def _install_wheel(
|
||||
@@ -610,7 +611,7 @@ def _install_wheel(
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore")
|
||||
for path in pyc_source_file_paths():
|
||||
@@ -58,7 +41,7 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py
|
||||
if success:
|
||||
pyc_path = pyc_output_path(path)
|
||||
assert os.path.exists(pyc_path)
|
||||
@@ -723,6 +724,7 @@ def install_wheel(
|
||||
@@ -721,6 +722,7 @@ def install_wheel(
|
||||
warn_script_location: bool = True,
|
||||
direct_url: Optional[DirectUrl] = None,
|
||||
requested: bool = False,
|
||||
@@ -66,9 +49,35 @@ Index: pip-22.0.3/src/pip/_internal/operations/install/wheel.py
|
||||
) -> None:
|
||||
with ZipFile(wheel_path, allowZip64=True) as z:
|
||||
with req_error_context(req_description):
|
||||
@@ -735,4 +737,5 @@ def install_wheel(
|
||||
@@ -733,4 +735,5 @@ def install_wheel(
|
||||
warn_script_location=warn_script_location,
|
||||
direct_url=direct_url,
|
||||
requested=requested,
|
||||
+ root=root,
|
||||
)
|
||||
diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py
|
||||
index a1e376c..4c3f1bb 100644
|
||||
--- a/src/pip/_internal/req/req_install.py
|
||||
+++ b/src/pip/_internal/req/req_install.py
|
||||
@@ -779,7 +779,9 @@ class InstallRequirement:
|
||||
assert self.local_file_path
|
||||
direct_url = None
|
||||
# TODO this can be refactored to direct_url = self.download_info
|
||||
- if self.editable:
|
||||
+ if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
|
||||
+ direct_url = None
|
||||
+ elif self.editable:
|
||||
direct_url = direct_url_for_editable(self.unpacked_source_directory)
|
||||
elif self.original_link:
|
||||
direct_url = direct_url_from_link(
|
||||
@@ -796,6 +798,7 @@ class InstallRequirement:
|
||||
warn_script_location=warn_script_location,
|
||||
direct_url=direct_url,
|
||||
requested=self.user_supplied,
|
||||
+ root=root,
|
||||
)
|
||||
self.install_succeeded = True
|
||||
return
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user