Skip to content

Commit 8017b0b

Browse files
committed
add documentation about temp files
1 parent e7c0534 commit 8017b0b

File tree

2 files changed

+42
-37
lines changed

2 files changed

+42
-37
lines changed

README.rst

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,13 @@ Rich Leland has created a short `screencast
3131
<http://mathematism.com/2009/jul/30/presentation-pip-and-virtualenv/>`__
3232
showing off the features of virtualenvwrapper.
3333

34-
===========
35-
Quick Setup
36-
===========
37-
38-
1. Create a directory to hold all of the virtual environments. The default is
39-
``$HOME/.virtualenvs``.
40-
41-
2. Add two lines to your shell startup file (``.bashrc``,
42-
``.profile``, etc.) to set the location where the virtual
43-
environments should live and the location of the script installed
44-
with this package::
45-
46-
export WORKON_HOME=$HOME/.virtualenvs
47-
source /usr/local/bin/virtualenvwrapper.sh
48-
49-
3. Reload the startup file (e.g., run: ``source ~/.bashrc``).
50-
4. Run: ``workon``
51-
5. A list of environments, empty, is printed.
52-
6. Run: ``mkvirtualenv temp``
53-
7. A new environment, ``temp`` is created and activated.
54-
8. Run: ``workon``
55-
9. This time, the ``temp`` environment is included.
34+
============
35+
Installation
36+
============
37+
38+
See the `project documentation
39+
<http://www.doughellmann.com/docs/virtualenvwrapper/>`__ for
40+
installation and setup instructions.
5641

5742
Upgrading from 1.x
5843
==================

docs/source/index.rst

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,48 @@ Features
2828
6. Plugin system for more creating sharable extensions (see
2929
:ref:`plugins`).
3030

31-
===========
32-
Quick Setup
31+
============
32+
Installation
33+
============
34+
35+
WORKON_HOME
3336
===========
3437

35-
1. Create a directory to hold all of the virtual environments. The default is
36-
``$HOME/.virtualenvs``.
38+
The variable ``WORKON_HOME`` tells virtualenvwrapper where to place
39+
your virtual environments. The default is ``$HOME/.virtualenvs``.
40+
This directory must be created before using any virtualenvwrapper
41+
commands.
3742

38-
2. Add two lines to your shell startup file (``.bashrc``,
39-
``.profile``, etc.) to set the location where the virtual
40-
environments should live and the location of the script installed
41-
with this package::
43+
Shell Startup File
44+
==================
45+
46+
Add two lines to your shell startup file (``.bashrc``, ``.profile``,
47+
etc.) to set the location where the virtual environments should live
48+
and the location of the script installed with this package::
4249

4350
export WORKON_HOME=$HOME/.virtualenvs
4451
source /usr/local/bin/virtualenvwrapper.sh
4552

46-
3. Reload the startup file (e.g., run: ``source ~/.bashrc``).
47-
4. Run: ``workon``
48-
5. A list of environments, empty, is printed.
49-
6. Run: ``mkvirtualenv temp``
50-
7. A new environment, ``temp`` is created and activated.
51-
8. Run: ``workon``
52-
9. This time, the ``temp`` environment is included.
53+
After editing it, reload the startup file (e.g., run: ``source
54+
~/.bashrc``).
55+
56+
Quick-Start
57+
===========
58+
59+
1. Run: ``workon``
60+
2. A list of environments, empty, is printed.
61+
3. Run: ``mkvirtualenv temp``
62+
4. A new environment, ``temp`` is created and activated.
63+
5. Run: ``workon``
64+
6. This time, the ``temp`` environment is included.
65+
66+
Temporary Files
67+
===============
68+
69+
virtualenvwrapper creates temporary files in ``$TMPDIR``. If the
70+
variable is not set, it uses ``/tmp``. To change the location of
71+
temporary files just for virtualenvwrapper, set
72+
``VIRTUALENVWRAPPER_TMPDIR``.
5373

5474
Upgrading from 1.x
5575
==================

0 commit comments

Comments
 (0)