Changeset 5730

Show
Ignore:
Timestamp:
11/19/08 18:07:01 (2 months ago)
Author:
jorge.vargas
Message:

Upgrading SVN install instructions.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/2.0/docs/main/Contributing.rst

    r5721 r5730  
    4141 
    4242   * On `ubuntu` you will need ``python-dev`` and ``python-setuptools``. 
    43 #. setuptools_ (run http://peak.telecommunity.com/dist/ez_setup.py from 
    44    any directory) 
     43 
     44#. setuptools_  
     45 
     46   * run http://peak.telecommunity.com/dist/ez_setup.py from any directory  
     47 
     48   * if you have an older version you can run::  
     49 
     50       $ easy_install -U setuptools 
     51    
     52 
     53   .. warning:: you need at least version 0.6c9 or some packages may fail installing, this is specially important if you have subversion 1.5.* 
     54 
     55    .. code-block:: bash 
     56 
     57       $ python  
     58       >>> import setuptools 
     59       >>> setuptools.__version__ 
     60       '0.6c9' 
     61 
    4562 
    4663#. Subversion_ 
    4764 
    48 #. Mercurial_ 
     65    * All mayor linux distributions have this, it's normally named ``subversion``, on windows you can download their exe installer  
    4966 
    5067.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools 
    5168.. _Subversion: http://subversion.tigris.org/getting.html 
    52 .. _Mercurial: http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages 
    5369 
    5470We recommend working in a `virtual environment`_ so that any existing 
     
    6177~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    6278 
    63 TurboGears 2 is composed of 2 packages. 
     79TurboGears 2 is composed of 2 packages. You also need 2 more package with are the authorization framework 
    6480 
    6581Check out the latest code from the subversion respositories: 
     
    7086  (tg2dev)$ svn co http://svn.turbogears.org/projects/tg.devtools/trunk tgdev 
    7187  (tg2dev)$ svn co http://svn.turbogears.org/trunk tg2 
     88  (tg2env)$ svn co http://svn.repoze.org/repoze.what/trunk/ repoze.what 
     89  (tg2env)$ svn co http://svn.repoze.org/repoze.what/plugins/sql/trunk repoze.what.plugins.sql 
    7290 
    7391There are also several dependencies, which can be easy_installed from our package index.  
     
    7795  template, admin interface, and migrations. 
    7896* tg2 package is TurboGears 2 core. 
     97* repoze.what formelly tg.authorization is the Authorization framework 
     98* repoze.what.plugins.sql is the default SQL plugin to work with TG auth model 
    7999 
    80100Again, tell setuptools to use these versions. 
    81101 
    82 * tg.ext.repoze.who: 
    83  
    84 .. code-block:: bash 
    85  
    86   (tg2dev)$ cd tg.ext.repoze.who 
    87   (tg2dev)$ easy_install Paste 
     102* repoze.what: 
     103 
     104.. code-block:: bash 
     105 
     106  (tg2dev)$ cd repoze.what 
    88107  (tg2dev)$ easy_install zope.interface 
    89108  (tg2dev)$ python setup.py develop 
     109  (tg2dev)$ cd .. 
     110  (tg2dev)$ cd repoze.what.plugins.sql/ 
     111  (tg2dev)$ python setup.py develop 
    90112 
    91113* TurboGears 2 server: 
     
    95117  (tg2dev)$ cd .. 
    96118  (tg2dev)$ cd tg2 
    97   (tg2dev)$ easy_install PasteScript==dev 
    98   (tg2dev)$ easy_install genshi 
    99119  (tg2dev)$ python setup.py develop 
    100120 
     
    120140messages.  Here are the correct ways to fix the dependency problems so 
    121141things will install properly. 
    122  
    123 * If you get an error about ``ObjectDispatchController`` this means 
    124   your Pylons installation is out-of-date. Make sure it's fresh (``hg 
    125   pull -u`` or ``hg pull`` followed by ``hg update`` -- alternatively you 
    126   can create a brand new Pylons branch in a new directory with ``hg 
    127   clone``). 
    128142 
    129143* When installing on Mac OSX, if you get an error mentioning ``No local 
     
    137151 
    138152.. _ToscaWidgets discussion list: http://groups.google.com/group/toscawidgets-discuss/browse_thread/thread/cb6778810e96585d 
    139  
    140 * If you get the following error when starting a project with ``paster 
    141   serve``:: 
    142  
    143     AttributeError: 'WSGIRequest' object has no attribute 'accept_language' 
    144  
    145   update your Pylons checkout with ``hg update`` and try again. 
    146153 
    147154