summaryrefslogtreecommitdiffstats
path: root/Lib/venv
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@gmail.com>2023-04-18 04:43:34 (GMT)
committerGitHub <noreply@github.com>2023-04-18 04:43:34 (GMT)
commitece20dba120a1a4745721c49f8d7389d4b1ee2a7 (patch)
treebcf21108159d242e4067f4ef9a1304d7f10a7f8a /Lib/venv
parentf39e00f9521a0d412a5fc9a50f2a553ec2bb1a7c (diff)
downloadcpython-ece20dba120a1a4745721c49f8d7389d4b1ee2a7.zip
cpython-ece20dba120a1a4745721c49f8d7389d4b1ee2a7.tar.gz
cpython-ece20dba120a1a4745721c49f8d7389d4b1ee2a7.tar.bz2
gh-95299: Stop installing setuptools as a part of ensurepip and venv (#101039)
Remove the bundled setuptools wheel from ensurepip, and stop installing setuptools in environments created by venv. Co-Authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Diffstat (limited to 'Lib/venv')
-rw-r--r--Lib/venv/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 2f87c62..2173c9b 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -13,7 +13,7 @@ import sysconfig
import types
-CORE_VENV_DEPS = ('pip', 'setuptools')
+CORE_VENV_DEPS = ('pip',)
logger = logging.getLogger(__name__)
@@ -523,7 +523,7 @@ def main(args=None):
'this environment.')
parser.add_argument('--upgrade-deps', default=False, action='store_true',
dest='upgrade_deps',
- help=f'Upgrade core dependencies: {", ".join(CORE_VENV_DEPS)} '
+ help=f'Upgrade core dependencies ({", ".join(CORE_VENV_DEPS)}) '
'to the latest version in PyPI')
options = parser.parse_args(args)
if options.upgrade and options.clear: