summaryrefslogtreecommitdiff
path: root/docs/narr/install.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2016-10-22 09:16:27 -0400
committerChris McDonough <chrism@plope.com>2016-10-22 09:16:27 -0400
commit7bb06f28ee296ecf43ba63279fc4c2439b4571d3 (patch)
tree10758a9c6980205c752e94e040fdb9433620859b /docs/narr/install.rst
parent85bd2b8187c39e44285983261a74aa815f2b19ed (diff)
parente73ae375581539ed42aa97d7cd6e96e6fbd64c79 (diff)
downloadpyramid-7bb06f28ee296ecf43ba63279fc4c2439b4571d3.tar.gz
pyramid-7bb06f28ee296ecf43ba63279fc4c2439b4571d3.tar.bz2
pyramid-7bb06f28ee296ecf43ba63279fc4c2439b4571d3.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/install.rst')
-rw-r--r--docs/narr/install.rst26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/narr/install.rst b/docs/narr/install.rst
index 677c27e4a..570cb2285 100644
--- a/docs/narr/install.rst
+++ b/docs/narr/install.rst
@@ -191,6 +191,29 @@ After installing Python as described previously in :ref:`for-mac-os-x-users` or
$ $VENV/bin/pip install "pyramid==\ |release|\ "
+.. index::
+ single: $VENV/bin/pip vs. source bin/activate
+
+.. _venv-bin-pip-vs-source-bin-activate:
+
+.. note:: Why use ``$VENV/bin/pip`` instead of ``source bin/activate``, then
+ ``pip``?
+
+ ``$VENV/bin/pip`` clearly specifies that ``pip`` is run from within the
+ virtual environment and not at the system level.
+
+ ``activate`` drops turds into the user's shell environment, leaving them
+ vulnerable to executing commands in the wrong context. ``deactivate`` might
+ not correctly restore previous shell environment variables.
+
+ Although using ``source bin/activate``, then ``pip``, requires fewer key
+ strokes to issue commands once invoked, there are other things to consider.
+ Michael F. Lamb (datagrok) presents a summary in `Virtualenv's bin/activate
+ is Doing It Wrong <https://gist.github.com/datagrok/2199506>`_.
+
+ Ultimately we prefer to keep things clear and simple, so we use
+ ``$VENV/bin/pip``.
+
.. index::
single: installing on Windows
@@ -227,6 +250,9 @@ After installing Python as described previously in
c:\\> %VENV%\\Scripts\\pip install "pyramid==\ |release|\ "
+.. note:: See the note above for :ref:`Why use $VENV/bin/pip instead of source
+ bin/activate, then pip <venv-bin-pip-vs-source-bin-activate>`.
+
What Gets Installed
-------------------