Changeset 5730
- Timestamp:
- 11/19/08 18:07:01 (2 months ago)
- Files:
-
- docs/2.0/docs/main/Contributing.rst (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
docs/2.0/docs/main/Contributing.rst
r5721 r5730 41 41 42 42 * 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 45 62 46 63 #. Subversion_ 47 64 48 #. Mercurial_ 65 * All mayor linux distributions have this, it's normally named ``subversion``, on windows you can download their exe installer 49 66 50 67 .. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools 51 68 .. _Subversion: http://subversion.tigris.org/getting.html 52 .. _Mercurial: http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages53 69 54 70 We recommend working in a `virtual environment`_ so that any existing … … 61 77 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 62 78 63 TurboGears 2 is composed of 2 packages. 79 TurboGears 2 is composed of 2 packages. You also need 2 more package with are the authorization framework 64 80 65 81 Check out the latest code from the subversion respositories: … … 70 86 (tg2dev)$ svn co http://svn.turbogears.org/projects/tg.devtools/trunk tgdev 71 87 (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 72 90 73 91 There are also several dependencies, which can be easy_installed from our package index. … … 77 95 template, admin interface, and migrations. 78 96 * 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 79 99 80 100 Again, tell setuptools to use these versions. 81 101 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 88 107 (tg2dev)$ easy_install zope.interface 89 108 (tg2dev)$ python setup.py develop 109 (tg2dev)$ cd .. 110 (tg2dev)$ cd repoze.what.plugins.sql/ 111 (tg2dev)$ python setup.py develop 90 112 91 113 * TurboGears 2 server: … … 95 117 (tg2dev)$ cd .. 96 118 (tg2dev)$ cd tg2 97 (tg2dev)$ easy_install PasteScript==dev98 (tg2dev)$ easy_install genshi99 119 (tg2dev)$ python setup.py develop 100 120 … … 120 140 messages. Here are the correct ways to fix the dependency problems so 121 141 things will install properly. 122 123 * If you get an error about ``ObjectDispatchController`` this means124 your Pylons installation is out-of-date. Make sure it's fresh (``hg125 pull -u`` or ``hg pull`` followed by ``hg update`` -- alternatively you126 can create a brand new Pylons branch in a new directory with ``hg127 clone``).128 142 129 143 * When installing on Mac OSX, if you get an error mentioning ``No local … … 137 151 138 152 .. _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 ``paster141 serve``::142 143 AttributeError: 'WSGIRequest' object has no attribute 'accept_language'144 145 update your Pylons checkout with ``hg update`` and try again.146 153 147 154