Auto-tools/Projects/Mozbase: Difference between revisions

Jump to navigation Jump to search
Line 33: Line 33:
==== Initial Setup ====
==== Initial Setup ====


(Some of these steps may not be necessary if you've already set up your computer for development.)
* Install [http://www.pip-installer.org/en/latest/installing.html python-pip].
* Install [https://developer.mozilla.org/en/Python/Virtualenv virtualenv] and [https://bitbucket.org/dhellmann/virtualenvwrapper virtualenvwrapper]:
    $ sudo pip install virtualenv
    $ sudo pip install virtualenvwrapper
    $ echo "source `which virtualenvwrapper.sh` >> ~/.bashrc
    $ source ~/.bashrc


* Install [https://developer.mozilla.org/En/Simple_Firefox_build#Install_build_prerequisites Mozilla build prerequisites], as well as a copy of [http://git-scm.com git].
* Grab a copy of [https://developer.mozilla.org/en-US/docs/Developer_Guide/Source_Code/Mercurial mozilla-central].
* Create a new virtualenv and install mozbase into it:
    $ cd mozilla-central/testing/mozbase
    $ mkvirtualenv mozbase
    $ python setup_development.py


* (''windows-only'') Launch the 'start-l10n.bat', to get a mozilla-build environment.
* Run the mozbase tests as a sanity check:
 
    $ python test.py
* Install [https://developer.mozilla.org/en/Python/Virtualenv virtualenv], if it's not on your system already. If on Windows, be sure to do this from inside the shell launched via 'start-l10n.bat'.


==== Installing Mozbase ====
==== Installing Mozbase ====
Confirmed users
656

edits

Navigation menu