diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2013-01-09 02:30:47 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2013-01-09 02:34:47 +0200 |
| commit | 22ed77d69b0f2348983be0c4e8758a44cf160671 (patch) | |
| tree | f7873f11b0bd9a50814f5666badbee667948fbde /docs | |
| parent | 09f43d3ba25ba2189a1b9abf6978e14690034d16 (diff) | |
| download | pyramid-22ed77d69b0f2348983be0c4e8758a44cf160671.tar.gz pyramid-22ed77d69b0f2348983be0c4e8758a44cf160671.tar.bz2 pyramid-22ed77d69b0f2348983be0c4e8758a44cf160671.zip | |
take advantage of the -c option of Python
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/install.rst | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/docs/narr/install.rst b/docs/narr/install.rst index ff89553ae..a78c1b2bd 100644 --- a/docs/narr/install.rst +++ b/docs/narr/install.rst @@ -150,32 +150,21 @@ To set up a virtualenv in which to install :app:`Pyramid`, first ensure that ``import setuptools`` within the Python interpreter you'd like to run :app:`Pyramid` under. -Here's the output you'll expect if setuptools or distribute is already -installed: +The following command will not display anything if setuptools or distribute is +already installed: .. code-block:: text - [chrism@thinko docs]$ python2.7 - Python 2.7.3 (default, Aug 1 2012, 05:14:39) - [GCC 4.6.3] on linux2 - Type "help", "copyright", "credits" or "license" for more information. - >>> import setuptools - >>> + $ python2.7 -c 'import setuptools' -Here's the output you can expect if setuptools or distribute is not already -installed: +Running the same command will yield the following output if setuptools or +distribute is not yet installed: .. code-block:: text - [chrism@thinko docs]$ python2.7 - Python 2.7.3 (default, Aug 1 2012, 05:14:39) - [GCC 4.6.3] on linux2 - Type "help", "copyright", "credits" or "license" for more information. - >>> import setuptools Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named setuptools - >>> If ``import setuptools`` raises an :exc:`ImportError` as it does above, you will need to install setuptools or distribute manually. Note that above |
