[Python-checkins] cpython (merge 3.4 -> default): Closes #23357: Updated documentation on creating venvs.

vinay.sajip python-checkins at python.org
Sat Feb 7 11:57:46 CET 2015


https://hg.python.org/cpython/rev/751910294200
changeset:   94551:751910294200
parent:      94548:7ed9c601accd
parent:      94550:c5f62f8d053e
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Sat Feb 07 10:57:36 2015 +0000
summary:
  Closes #23357: Updated documentation on creating venvs.

files:
  Doc/using/venv-create.inc |  11 +++++++----
  1 files changed, 7 insertions(+), 4 deletions(-)


diff --git a/Doc/using/venv-create.inc b/Doc/using/venv-create.inc
--- a/Doc/using/venv-create.inc
+++ b/Doc/using/venv-create.inc
@@ -21,16 +21,16 @@
 On Windows, you may have to invoke the ``pyvenv`` script as follows, if you
 don't have the relevant PATH and PATHEXT settings::
 
-    c:\Temp>c:\Python33\python c:\Python33\Tools\Scripts\pyvenv.py myenv
+    c:\Temp>c:\Python35\python c:\Python35\Tools\Scripts\pyvenv.py myenv
 
 or equivalently::
 
-    c:\Temp>c:\Python33\python -m venv myenv
+    c:\Temp>c:\Python35\python -m venv myenv
 
 The command, if run with ``-h``, will show the available options::
 
-    usage: pyvenv [-h] [--system-site-packages] [--symlinks] [--clear]
-                  [--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
+    usage: venv [-h] [--system-site-packages] [--symlinks] [--clear]
+                [--upgrade] [--without-pip] ENV_DIR [ENV_DIR ...]
 
     Creates virtual Python environments in one or more target directories.
 
@@ -53,6 +53,9 @@
       --without-pip          Skips installing or upgrading pip in the virtual
                              environment (pip is bootstrapped by default)
 
+Depending on how the ``venv`` functionality has been invoked, the usage message
+may vary slightly, e.g. referencing ``pyvenv`` rather than ``venv``.
+
 .. versionchanged:: 3.4
    Installs pip by default, added the ``--without-pip``  and ``--copies``
    options

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list