Skip to content

Commit 170108f

Browse files
committed
doc updates for VIRTUALENVWRAPPER_VIRTUALENV
1 parent bf03d91 commit 170108f

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

docs/en/history.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ dev
1818
from Paul McLanahan (:bbuser:`pmclanahan`). The new command
1919
changes the configuration of the active virtualenv to enable or
2020
disable the global ``site-packages`` directory.
21+
- Fixed some tests that were failing under ksh on Ubuntu 10.10.
22+
- Document the :ref:`VIRTUALENVWRAPPER_VIRTUALENV
23+
<variable-VIRTUALENVWRAPPER_VIRTUALENV>` variable.
2124

2225
2.6.3
2326

@@ -34,7 +37,7 @@ dev
3437
Tetsuya Morimoto.
3538
- Incorporate a suggestion from Ales Zoulek to let the user specify
3639
the virtualenv binary through an environment variable
37-
(``VIRTUALENVWRAPPER_VIRTUALENV``).
40+
(:ref:`VIRTUALENVWRAPPER_VIRTUALENV <variable-VIRTUALENVWRAPPER_VIRTUALENV>`).
3841

3942
2.6.1
4043

docs/en/install.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,36 @@ and the location of the script installed with this package::
6464
After editing it, reload the startup file (e.g., run: ``source
6565
~/.bashrc``).
6666

67-
Python Interpreter and $PATH
68-
============================
67+
.. _variable-VIRTUALENVWRAPPER_VIRTUALENV:
6968

70-
During startup, ``virtualenvwrapper.sh`` finds the first ``python`` on
71-
the ``$PATH`` and remembers it to use later. This eliminates any
72-
conflict as the ``$PATH`` changes, enabling interpreters inside
73-
virtual environments where virtualenvwrapper is not installed.
74-
Because of this behavior, it is important for the ``$PATH`` to be set
75-
**before** sourcing ``virtualenvwrapper.sh``. For example::
69+
.. _variable-VIRTUALENVWRAPPER_PYTHON:
70+
71+
Python Interpreter, virtualenv, and $PATH
72+
=========================================
73+
74+
During startup, ``virtualenvwrapper.sh`` finds the first ``python``
75+
and ``virtualenv`` programs on the ``$PATH`` and remembers them to use
76+
later. This eliminates any conflict as the ``$PATH`` changes,
77+
enabling interpreters inside virtual environments where
78+
virtualenvwrapper is not installed or where different versions of
79+
virtualenv are installed. Because of this behavior, it is important
80+
for the ``$PATH`` to be set **before** sourcing
81+
``virtualenvwrapper.sh``. For example::
7682

7783
export PATH=/usr/local/bin:$PATH
7884
source /usr/local/bin/virtualenvwrapper.sh
7985

8086
To override the ``$PATH`` search, set the variable
8187
``VIRTUALENVWRAPPER_PYTHON`` to the full path of the interpreter to
82-
use (also **before** sourcing ``virtualenvwrapper.sh``). For
83-
example::
88+
use and ``VIRTUALENVWRAPPER_VIRTUALENV`` to the full path of the
89+
``virtualenv`` binary to use. Both variables *must* be set before
90+
sourcing ``virtualenvwrapper.sh``. For example::
8491

8592
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
93+
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
8694
source /usr/local/bin/virtualenvwrapper.sh
8795

96+
8897
Quick-Start
8998
===========
9099

0 commit comments

Comments
 (0)