summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-07-12 20:52:51 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-07-12 20:52:51 (GMT)
commit577d4ff6e0c08d6ebd50aa3b4390ede09451f1ba (patch)
treed30683213f945eb2e36236dfbce1e9573d735c6a /Doc
parentad6bb031d79a1c9d678e278f973bbb89a0895760 (diff)
downloadcpython-577d4ff6e0c08d6ebd50aa3b4390ede09451f1ba.zip
cpython-577d4ff6e0c08d6ebd50aa3b4390ede09451f1ba.tar.gz
cpython-577d4ff6e0c08d6ebd50aa3b4390ede09451f1ba.tar.bz2
Issue #18433: Clarified venv documentation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/venv.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Doc/library/venv.rst b/Doc/library/venv.rst
index 5075fb1..80c75c2 100644
--- a/Doc/library/venv.rst
+++ b/Doc/library/venv.rst
@@ -125,11 +125,13 @@ creation according to their needs, the :class:`EnvBuilder` class.
:meth:`create_configuration`, :meth:`setup_python`,
:meth:`setup_scripts` and :meth:`post_setup` can be overridden.
- .. method:: create_directories(env_dir)
+ .. method:: ensure_directories(env_dir)
Creates the environment directory and all necessary directories, and
returns a context object. This is just a holder for attributes (such as
- paths), for use by the other methods.
+ paths), for use by the other methods. The directories are allowed to
+ exist already, as long as either ``clear`` or ``upgrade`` were
+ specified to allow operating on an existing environment directory.
.. method:: create_configuration(context)
@@ -138,7 +140,10 @@ creation according to their needs, the :class:`EnvBuilder` class.
.. method:: setup_python(context)
Creates a copy of the Python executable (and, under Windows, DLLs) in
- the environment.
+ the environment. On a POSIX system, if a specific executable
+ ``python3.x`` was used, symlinks to ``python`` and ``python3`` will be
+ created pointing to that executable, unless files with those names
+ already exist.
.. method:: setup_scripts(context)
@@ -175,6 +180,8 @@ creation according to their needs, the :class:`EnvBuilder` class.
* ``__VENV_PYTHON__`` is replaced with the absolute path of the
environment's executable.
+ The directories are allowed to exist (for when an existing environment
+ is being upgraded).
There is also a module-level convenience function: