mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
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>
This commit is contained in:
parent
f39e00f952
commit
ece20dba12
13 changed files with 57 additions and 48 deletions
|
|
@ -227,7 +227,6 @@ class BasicTest(BaseTest):
|
|||
'install',
|
||||
'--upgrade',
|
||||
'pip',
|
||||
'setuptools'
|
||||
]
|
||||
)
|
||||
|
||||
|
|
@ -745,7 +744,6 @@ class EnsurePipTest(BaseTest):
|
|||
# future pip versions, this test can likely be relaxed further.
|
||||
out = out.decode("latin-1") # Force to text, prevent decoding errors
|
||||
self.assertIn("Successfully uninstalled pip", out)
|
||||
self.assertIn("Successfully uninstalled setuptools", out)
|
||||
# Check pip is now gone from the virtual environment. This only
|
||||
# applies in the system_site_packages=False case, because in the
|
||||
# other case, pip may still be available in the system site-packages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue