Doug Hellmann  committed ed4aecf

fix mkvirtualenv -h

  • Participants
  • Parent commits 693114d

Comments (0)

Files changed (3)

File docs/source/history.rst

     named hooks.
   - Add support for listing the available hooks, to be used in help
     output of commands like virtualenvwrapper.project's mkproject.
+  - Fix mkvirtualenv -h option behavior.

File docs/source/install.rst

+Basic Installation
+virtualenvwrapper should be installed using pip_::
+  $ pip install virtualenvwrapper
+You will want to install it into the global Python site-packages area,
+along with virtualenv.  You may need administrative privileges to do
 This directory must be created before using any virtualenvwrapper
+.. _install-shell-config:
 Shell Startup File
 supported.  In your startup file, change ``source
 /usr/local/bin/virtualenvwrapper_bashrc`` to ``source
+.. _pip:


     virtualenvwrapper_verify_virtualenv || return 1
     (cd "$WORKON_HOME" &&
         virtualenv "$@" &&
-        virtualenvwrapper_run_hook "pre_mkvirtualenv" "$envname"
+        [ -d "$WORKON_HOME/$envname" ] && virtualenvwrapper_run_hook "pre_mkvirtualenv" "$envname"
     # If they passed a help option or got an error from virtualenv,
     # the environment won't exist.  Use that to tell whether