File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 2323 named hooks.
2424 - Add support for listing the available hooks, to be used in help
2525 output of commands like virtualenvwrapper.project's mkproject.
26+ - Fix mkvirtualenv -h option behavior.
2627
27282.0.2
2829
Original file line number Diff line number Diff line change 22Installation
33============
44
5+ Basic Installation
6+ ==================
7+
8+ virtualenvwrapper should be installed using pip _::
9+
10+ $ pip install virtualenvwrapper
11+
12+ You will want to install it into the global Python site-packages area,
13+ along with virtualenv. You may need administrative privileges to do
14+ that.
15+
516WORKON_HOME
617===========
718
@@ -10,6 +21,8 @@ your virtual environments. The default is ``$HOME/.virtualenvs``.
1021This directory must be created before using any virtualenvwrapper
1122commands.
1223
24+ .. _install-shell-config :
25+
1326Shell Startup File
1427==================
1528
@@ -70,3 +83,5 @@ the 2.x series to reflect the fact that shells other than bash are
7083supported. In your startup file, change ``source
7184/usr/local/bin/virtualenvwrapper_bashrc `` to ``source
7285/usr/local/bin/virtualenvwrapper.sh ``.
86+
87+ .. _pip : http://pypi.python.org/pypi/pip
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ mkvirtualenv () {
158158 virtualenvwrapper_verify_virtualenv || return 1
159159 (cd " $WORKON_HOME " &&
160160 virtualenv " $@ " &&
161- virtualenvwrapper_run_hook " pre_mkvirtualenv" " $envname "
161+ [ -d " $WORKON_HOME / $envname " ] && virtualenvwrapper_run_hook " pre_mkvirtualenv" " $envname "
162162 )
163163 # If they passed a help option or got an error from virtualenv,
164164 # the environment won't exist. Use that to tell whether
You can’t perform that action at this time.
0 commit comments