mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-34556: Add --upgrade-deps to venv module (#13100)
Add --upgrade-deps to venv module - This allows for pip + setuptools to be automatically upgraded to the latest version on PyPI - Update documentation to represent this change bpo-34556: Add --upgrade to venv module
This commit is contained in:
parent
ca7b504a4d
commit
4acdbf11b1
5 changed files with 65 additions and 8 deletions
|
@ -35,7 +35,7 @@ your :ref:`Python installation <using-on-windows>`::
|
|||
The command, if run with ``-h``, will show the available options::
|
||||
|
||||
usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
|
||||
[--upgrade] [--without-pip] [--prompt PROMPT]
|
||||
[--upgrade] [--without-pip] [--prompt PROMPT] [--upgrade-deps]
|
||||
ENV_DIR [ENV_DIR ...]
|
||||
|
||||
Creates virtual Python environments in one or more target directories.
|
||||
|
@ -60,10 +60,15 @@ The command, if run with ``-h``, will show the available options::
|
|||
environment (pip is bootstrapped by default)
|
||||
--prompt PROMPT Provides an alternative prompt prefix for this
|
||||
environment.
|
||||
--upgrade-deps Upgrade core dependencies: pip setuptools to the
|
||||
latest version in PyPI
|
||||
|
||||
Once an environment has been created, you may wish to activate it, e.g. by
|
||||
sourcing an activate script in its bin directory.
|
||||
|
||||
.. versionchanged:: 3.8
|
||||
Add ``--upgrade-deps`` option to upgrade pip + setuptools to the latest on PyPI
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
Installs pip by default, added the ``--without-pip`` and ``--copies``
|
||||
options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue