python3: Update to 3.7.17

This includes an updated patch for pip, as the bundled pip was also
updated with this release.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To
2023-06-12 17:35:45 +08:00
parent 39ddffe42d
commit f7a8607579
4 changed files with 23 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
diff --git a/pip/_vendor/pyproject_hooks/_in_process/__init__.py b/pip/_vendor/pyproject_hooks/_in_process/__init__.py
index 917fa065b3c7..c9ec8efd53b3 100644
--- a/pip/_vendor/pyproject_hooks/_in_process/__init__.py
+++ b/pip/_vendor/pyproject_hooks/_in_process/__init__.py
@@ -11,8 +11,13 @@ try:
except AttributeError:
# Python 3.8 compatibility
def _in_proc_script_path():
- return resources.path(__package__, '_in_process.py')
+ if resources.is_resource(__package__, '_in_process.py'):
+ return resources.path(__package__, '_in_process.py')
+ return resources.path(__package__, '_in_process.pyc')
else:
def _in_proc_script_path():
+ if resources.files(__package__).joinpath('_in_process.py').is_file():
+ return resources.as_file(
+ resources.files(__package__).joinpath('_in_process.py'))
return resources.as_file(
- resources.files(__package__).joinpath('_in_process.py'))
+ resources.files(__package__).joinpath('_in_process.pyc'))