From 279ba5e6d6fde22923d919ab6d5ce5b535d2355c Mon Sep 17 00:00:00 2001 From: Patricio Paez Date: Wed, 30 Mar 2011 16:46:19 -0600 Subject: Sync Declaring Dependencies with the SQLAlchemy tutorial --- docs/tutorials/wiki/definingviews.rst | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'docs') 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 `_. 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 ===================== -- cgit v1.2.3