summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPatricio Paez <pp@pp.com.mx>2011-03-30 16:46:19 -0600
committerPatricio Paez <pp@pp.com.mx>2011-03-30 16:48:15 -0600
commit279ba5e6d6fde22923d919ab6d5ce5b535d2355c (patch)
treeec086dfa3a6124288b0c2112763b89720878bdf9 /docs
parentdb638cb873d49b2796457dcc7d0cb2b4e421fbb6 (diff)
downloadpyramid-279ba5e6d6fde22923d919ab6d5ce5b535d2355c.tar.gz
pyramid-279ba5e6d6fde22923d919ab6d5ce5b535d2355c.tar.bz2
pyramid-279ba5e6d6fde22923d919ab6d5ce5b535d2355c.zip
Sync Declaring Dependencies with the SQLAlchemy tutorial
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorials/wiki/definingviews.rst20
1 files changed, 13 insertions, 7 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst
index 0d001db25..b63278cb6 100644
--- a/docs/tutorials/wiki/definingviews.rst
+++ b/docs/tutorials/wiki/definingviews.rst
@@ -43,14 +43,15 @@ The source code for this tutorial stage can be browsed via
<http://github.com/Pylons/pyramid/tree/master/docs/tutorials/wiki/src/views/>`_.
Declaring Dependencies in Our ``setup.py`` File
------------------------------------------------
+===============================================
-Our application now depends on packages which are not dependencies of the
-original "tutorial" application as it was generated by the ``paster create``
-command. We'll add these dependencies to our ``tutorial`` package's
-``setup.py`` file by assigning these dependencies to both the
-``install_requires`` and the ``tests_require`` parameters to the ``setup``
-function. In particular, we require the ``docutils`` package.
+The view code in our application will depend on a package which is not a
+dependency of the original "tutorial" application. The original "tutorial"
+application was generated by the ``paster create`` command; it doesn't know
+about our custom application requirements. We need to add a dependency on
+the ``docutils`` package to our ``tutorial`` package's ``setup.py`` file by
+assigning this dependency to the ``install_requires`` parameter in the
+``setup`` function.
Our resulting ``setup.py`` should look like so:
@@ -58,6 +59,11 @@ Our resulting ``setup.py`` should look like so:
:linenos:
:language: python
+.. note:: After these new dependencies are added, you will need to
+ rerun ``python setup.py develop`` inside the root of the
+ ``tutorial`` package to obtain and register the newly added
+ dependency package.
+
Adding View Functions
=====================