Verbatim:Development/Dev Instance: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
** if you are using <code>git-svn</code>, make sure to generate an empty <code>dbs</code> directory, as git won't pick up empty directories [http://sourceforge.net/mailarchive/forum.php?thread_name=4A37D896.3070403%40mozilla.com&forum_name=translate-devel]
** if you are using <code>git-svn</code>, make sure to generate an empty <code>dbs</code> directory, as git won't pick up empty directories [http://sourceforge.net/mailarchive/forum.php?thread_name=4A37D896.3070403%40mozilla.com&forum_name=translate-devel]
* create a clean Python environment for the application, using [http://pypi.python.org/pypi/virtualenv virtualenv] (you don't want to install all required libs in your global python directory):
* create a clean Python environment for the application, using [http://pypi.python.org/pypi/virtualenv virtualenv] (you don't want to install all required libs in your global python directory):
** <code>easy_install virtualenv</code>
** <code>virtualenv --no-site-packages --python=path/to/python2.5 pootle-env</code>
** <code>virtualenv --no-site-packages --python=path/to/python2.5 pootle-env</code>
** <code>cd pootle-env/</code>
** <code>cd pootle-env/</code>

Revision as of 00:40, 19 June 2009

Verbatim » Development / Dev Instance

Setting up a Pootle development instance

Pootle's installation instructions are on the Pootle wiki. Make sure to follow the (django-based) installation instructions, not the ones referring to jToolkit.

  • have Python 2.5 installed
  • grab an svn checkout of the Pootle trunk:
  • create a clean Python environment for the application, using virtualenv (you don't want to install all required libs in your global python directory):
    • virtualenv --no-site-packages --python=path/to/python2.5 pootle-env
    • cd pootle-env/
    • . bin/activate
  • Install the pre-requisites. Some notes:
    • PyLucene and Xapian are not vital
    • The translate toolkit is part of the Pootle project too, and while it comes with an svn checkout of the trunk you still need to install it:
      • cd pootle
      • python setup.py install
  • Initialize the database by running the ./PootleServer script once.
  • You can run the pootle server later by using ./manage.py runserver PORTNUMBER (if you omit PORTNUMBER, it'll default to 8000) [2]