@@ -64,27 +64,36 @@ and the location of the script installed with this package::
64
64
After editing it, reload the startup file (e.g., run: ``source
65
65
~/.bashrc ``).
66
66
67
- Python Interpreter and $PATH
68
- ============================
67
+ .. _variable-VIRTUALENVWRAPPER_VIRTUALENV :
69
68
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::
76
82
77
83
export PATH=/usr/local/bin:$PATH
78
84
source /usr/local/bin/virtualenvwrapper.sh
79
85
80
86
To override the ``$PATH `` search, set the variable
81
87
``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::
84
91
85
92
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
93
+ export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
86
94
source /usr/local/bin/virtualenvwrapper.sh
87
95
96
+
88
97
Quick-Start
89
98
===========
90
99
0 commit comments