Skip to content

Commit e8eb972

Browse files
TROUVERIE Joachimjaraco
authored andcommitted
Correct venv doc (fix #32540) (#5736)
1 parent 7eb3f82 commit e8eb972

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/using/venv-create.inc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ with a ``home`` key pointing to the Python installation from which the command
99
was run. It also creates a ``bin`` (or ``Scripts`` on Windows) subdirectory
1010
containing a copy of the ``python`` binary (or binaries, in the case of
1111
Windows). It also creates an (initially empty) ``lib/pythonX.Y/site-packages``
12-
subdirectory (on Windows, this is ``Lib\site-packages``).
12+
subdirectory (on Windows, this is ``Lib\site-packages``). If an existing
13+
directory is specified, it will be re-used.
1314
1415
.. deprecated:: 3.6
1516
``pyvenv`` was the recommended tool for creating virtual environments for
@@ -71,9 +72,7 @@ The command, if run with ``-h``, will show the available options::
7172
7273
.. versionchanged:: 3.4
7374
In earlier versions, if the target directory already existed, an error was
74-
raised, unless the ``--clear`` or ``--upgrade`` option was provided. Now,
75-
if an existing directory is specified, its contents are removed and
76-
the directory is processed as if it had been newly created.
75+
raised, unless the ``--clear`` or ``--upgrade`` option was provided.
7776
7877
The created ``pyvenv.cfg`` file also includes the
7978
``include-system-site-packages`` key, set to ``true`` if ``venv`` is

0 commit comments

Comments
 (0)