From 77d81aa4a3747b7dfbb17e43b16e1a514550c60c Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Dec 2019 20:18:01 +0300 Subject: Import python3.8 (3.8.0-5) --- debian/patches/ensurepip-disabled.diff | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'debian/patches/ensurepip-disabled.diff') diff --git a/debian/patches/ensurepip-disabled.diff b/debian/patches/ensurepip-disabled.diff index ff221d7..be97912 100644 --- a/debian/patches/ensurepip-disabled.diff +++ b/debian/patches/ensurepip-disabled.diff @@ -1,5 +1,7 @@ # DP: Disable ensurepip for the system installation, only enable it for virtual environments. +Index: b/Lib/ensurepip/__init__.py +=================================================================== --- a/Lib/ensurepip/__init__.py +++ b/Lib/ensurepip/__init__.py @@ -8,6 +8,34 @@ import tempfile @@ -49,9 +51,11 @@ if altinstall and default_pip: raise ValueError("Cannot use altinstall and default_pip together") +Index: b/Lib/venv/__init__.py +=================================================================== --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py -@@ -266,7 +266,28 @@ class EnvBuilder: +@@ -286,7 +286,28 @@ class EnvBuilder: # intended for the global Python environment cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade', '--default-pip'] -- cgit v1.2.3