summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2007-10-17 19:06:26 -0500
committerIan Bicking <ianb@colorstudy.com>2007-10-17 19:06:26 -0500
commit9af0c765522787b47d0c577c09b5c6b92b20cdbc (patch)
treececed18f8a1e09fe602910232a66eb9eca06503d /docs
parenta7f083558efa2d6185e513b832f35d6cdc89440c (diff)
downloadvirtualenv-9af0c765522787b47d0c577c09b5c6b92b20cdbc.tar.gz
[svn r3088] some more docs on addsitedir; news for 0.9.1
Diffstat (limited to 'docs')
-rw-r--r--docs/index.txt23
1 files changed, 21 insertions, 2 deletions
diff --git a/docs/index.txt b/docs/index.txt
index 2e6825e..c47cdbe 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -132,6 +132,25 @@ Here's a more concrete example of how you could use this::
"""))
f = open('blog-bootstrap.py', 'w').write(output)
+Using Virtualenv without ``bin/python``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Sometimes you can't or don't want to use the Python interpreter
+created by the virtualenv. For instance, in a `mod_python
+<http://www.modpython.org/>`_ or `mod_wsgi <http://www.modwsgi.org/>`_
+environment, there is only one interpreter.
+
+Luckily, it's easy. You must use the custom Python interpreter to
+*install* libraries. But to *use* libraries, you just have to be sure
+the path is correct. Adding the correct path is easy::
+
+ import site
+ site.addsitedir('/path/to/virtualenv/lib/python2.5/site-packages')
+
+Using this you can have your isolated working environment, using the
+custom Python interpreter, but treat the result as just a simple set
+of libraries when running your application.
+
Compare & Contrast with Alternatives
------------------------------------
@@ -174,8 +193,8 @@ deployment use one of these tools.
Changes & News
--------------
-svn trunk
-~~~~~~~~~
+0.9.1
+~~~~~
* Improve ability to create a virtualenv from inside a virtualenv.
* Fix a little bug in ``bin/activate``.