mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
bpo-36275: enhance documentation for venv.create() (GH-13114)
(cherry picked from commit 3921b1cc34)
Co-authored-by: Sebastian Koslowski <sebastian.koslowski@gmail.com>
This commit is contained in:
parent
8777915ade
commit
9a03c77328
1 changed files with 6 additions and 1 deletions
|
|
@ -239,14 +239,19 @@ creation according to their needs, the :class:`EnvBuilder` class.
|
|||
There is also a module-level convenience function:
|
||||
|
||||
.. function:: create(env_dir, system_site_packages=False, clear=False, \
|
||||
symlinks=False, with_pip=False)
|
||||
symlinks=False, with_pip=False, prompt=None)
|
||||
|
||||
Create an :class:`EnvBuilder` with the given keyword arguments, and call its
|
||||
:meth:`~EnvBuilder.create` method with the *env_dir* argument.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
Added the ``with_pip`` parameter
|
||||
|
||||
.. versionchanged:: 3.6
|
||||
Added the ``prompt`` parameter
|
||||
|
||||
An example of extending ``EnvBuilder``
|
||||
--------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue