~ubuntu-branches/ubuntu/trusty/virtualenvwrapper/trusty-proposed

« back to all changes in this revision

Viewing changes to docs/html/en/_sources/install.txt

  • Committer: Package Import Robot
  • Author(s): Jan Dittberner
  • Date: 2012-01-08 18:27:55 UTC
  • mfrom: (1.2.14)
  • Revision ID: package-import@ubuntu.com-20120108182755-pan9qj3tb0u2o9bd
Tags: 2.11.1-1
* New upstream version.
* refresh debian/patches/debianspecific-setup.py.patch and
  debian/patches/remove_bitbucket_support.patch
* update debian/copyright format and copyright years

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
================
9
9
 
10
10
virtualenvwrapper is a set of shell *functions* defined in Bourne
11
 
shell compatible syntax.  It is tested under `bash`, `ksh`, and `zsh`.
 
11
shell compatible syntax.  Its automated tests run under these
 
12
shells on OS X and Linux:
 
13
 
 
14
* ``bash``
 
15
* ``ksh``
 
16
* ``zsh``
 
17
 
12
18
It may work with other shells, so if you find that it does work with a
13
19
shell not listed here please let me know.  If you can modify it to
14
 
work with another shell, without completely rewriting it, send a pull
15
 
request through the bitbucket project page.  If you write a clone to
 
20
work with another shell without completely rewriting it, then send a pull
 
21
request through the `bitbucket project page`_.  If you write a clone to
16
22
work with an incompatible shell, let me know and I will link to it
17
23
from this page.
18
24
 
 
25
.. _bitbucket project page: https://bitbucket.org/dhellmann/virtualenvwrapper/
 
26
 
 
27
MSYS
 
28
----
 
29
 
 
30
It is possible to use virtualenv wrapper under `MSYS
 
31
<http://www.mingw.org/wiki/MSYS>`_ with a native Windows Python
 
32
installation.  In order to make it work, you need to define an extra
 
33
environment variable named ``MSYS_HOME`` containing the root path to
 
34
the MSYS installation.
 
35
 
 
36
::
 
37
 
 
38
    export WORKON_HOME=$HOME/.virtualenvs
 
39
    export MSYS_HOME=/c/msys/1.0
 
40
    source /usr/local/bin/virtualenvwrapper.sh
 
41
 
 
42
or::
 
43
 
 
44
    export WORKON_HOME=$HOME/.virtualenvs
 
45
    export MSYS_HOME=C:\msys\1.0
 
46
    source /usr/local/bin/virtualenvwrapper.sh
 
47
 
 
48
Depending on your MSYS setup, you may need to install the `MSYS mktemp
 
49
binary`_ in the ``MSYS_HOME/bin`` folder.
 
50
 
 
51
.. _MSYS mktemp binary: http://sourceforge.net/projects/mingw/files/MSYS/mktemp/
 
52
 
 
53
PowerShell
 
54
----------
 
55
 
 
56
Guillermo López-Anglada has ported virtualenvwrapper to run under
 
57
Microsoft's PowerShell. We have agreed that since it is not compatible
 
58
with the rest of the extensions, and is largely a re-implementation
 
59
(rather than an adaptation), it should be distributed separately. You
 
60
can download virtualenvwrapper-powershell_ from PyPI.
 
61
 
 
62
.. _virtualenvwrapper-powershell: http://pypi.python.org/pypi/virtualenvwrapper-powershell/2.7.1
 
63
 
19
64
.. _supported-versions:
20
65
 
21
66
Python Versions
61
106
Shell Startup File
62
107
==================
63
108
 
64
 
Add two lines to your shell startup file (``.bashrc``, ``.profile``,
65
 
etc.) to set the location where the virtual environments should live
66
 
and the location of the script installed with this package::
 
109
Add three lines to your shell startup file (``.bashrc``, ``.profile``,
 
110
etc.) to set the location where the virtual environments should live,
 
111
the location of your development project directorkes, and the location
 
112
of the script installed with this package::
67
113
 
68
114
    export WORKON_HOME=$HOME/.virtualenvs
 
115
    export PROJECT_HOME=$HOME/Devel
69
116
    source /usr/local/bin/virtualenvwrapper.sh
70
117
 
71
118
After editing it, reload the startup file (e.g., run ``source
88
135
variables. Set the variables in your shell startup file *before*
89
136
loading ``virtualenvwrapper.sh``.
90
137
 
 
138
.. _variable-WORKON_HOME:
 
139
 
91
140
Location of Environments
92
141
------------------------
93
142
 
96
145
the directory does not exist when virtualenvwrapper is loaded, it will
97
146
be created automatically.
98
147
 
 
148
.. _variable-PROJECT_HOME:
 
149
 
 
150
Location of Project Directories
 
151
-------------------------------
 
152
 
 
153
The variable ``PROJECT_HOME`` tells virtualenvwrapper where to place
 
154
your project working directories.  The variable must be set and the
 
155
directory created before :ref:`command-mkproject` is used.
 
156
 
 
157
.. seealso::
 
158
 
 
159
   * :ref:`project-management`
 
160
 
 
161
.. _variable-VIRTUALENVWRAPPER_PROJECT_FILENAME:
 
162
 
 
163
Project Linkage Filename
 
164
------------------------
 
165
 
 
166
The variable ``VIRTUALENVWRAPPER_PROJECT_FILENAME`` tells
 
167
virtualenvwrapper how to name the file linking a virtualenv to a
 
168
project working directory. The default is ``.project``.
 
169
 
 
170
.. seealso::
 
171
 
 
172
   * :ref:`project-management`
 
173
 
99
174
.. _variable-VIRTUALENVWRAPPER_HOOK_DIR:
100
175
 
101
176
Location of Hook Scripts
105
180
where the :ref:`user-defined hooks <scripts>` should be placed. The
106
181
default is ``$WORKON_HOME``.
107
182
 
 
183
.. seealso::
 
184
 
 
185
   * :ref:`scripts`
 
186
 
108
187
.. _variable-VIRTUALENVWRAPPER_LOG_DIR:
109
188
 
110
189
Location of Hook Logs
186
265
cannot disable it. Refer to the documentation for the shell to
187
266
identify the appropriate file to edit.
188
267
 
 
268
Upgrading to 2.9
 
269
================
 
270
 
 
271
Version 2.9 includes the features previously delivered separately by
 
272
``virtualenvwrapper.project``.  If you have an older verison of the
 
273
project extensions installed, remove them before upgrading.
 
274
 
189
275
Upgrading from 1.x
190
276
==================
191
277
 
196
282
/usr/local/bin/virtualenvwrapper.sh``.
197
283
 
198
284
.. _pip: http://pypi.python.org/pypi/pip
199
 
 
200
 
Using virtualenvwrapper Under MSys
201
 
==================================
202
 
 
203
 
It is possible to use virtualenv wrapper under `MSYS
204
 
<http://www.mingw.org/wiki/MSYS>`_ with a native Windows Python
205
 
installation.  In order to make it work, you need to define an extra
206
 
environment variable named ``MSYS_HOME`` containing the root path to
207
 
the MSYS installation.
208
 
 
209
 
::
210
 
 
211
 
    export WORKON_HOME=$HOME/.virtualenvs
212
 
    export MSYS_HOME=/c/msys/1.0
213
 
    source /usr/local/bin/virtualenvwrapper.sh
214
 
 
215
 
or::
216
 
 
217
 
    export WORKON_HOME=$HOME/.virtualenvs
218
 
    export MSYS_HOME=C:\msys\1.0
219
 
    source /usr/local/bin/virtualenvwrapper.sh
220
 
 
221
 
Depending on your MSYS setup, you may need to install the `MSYS mktemp
222
 
binary`_ in the ``MSYS_HOME/bin`` folder.
223
 
 
224
 
.. _MSYS mktemp binary: http://sourceforge.net/projects/mingw/files/MSYS/mktemp/