Commits

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.
 
 2.0.2
 

File docs/source/install.rst

 Installation
 ============
 
+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
+that.
+
 WORKON_HOME
 ===========
 
 This directory must be created before using any virtualenvwrapper
 commands.
 
+.. _install-shell-config:
+
 Shell Startup File
 ==================
 
 supported.  In your startup file, change ``source
 /usr/local/bin/virtualenvwrapper_bashrc`` to ``source
 /usr/local/bin/virtualenvwrapper.sh``.
+
+.. _pip: http://pypi.python.org/pypi/pip

File virtualenvwrapper.sh

     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