This is a quick guide to setup a development environment to work on Postorius, Mailman 3's web ui. If all goes as planned, you should be done within ~5 minutes. This has been tested on Ubuntu 11.04 and OS X 10.8.1. Please note that the Python provided by apple for OSX will not work; you need to install your own version of python (e.g. using fink or macports). The Mac Mailman development setup guide has instructions using homebrew if you need additional instructions.
Install the essentials
$ sudo apt-get install bzr python-setuptools python-dev build-essential |
Get the sources
(postorius)$ bzr branch lp:mailman (postorius)$ bzr branch lp:mailman.client (postorius)$ bzr branch lp:postorius (postorius)$ bzr branch lp:~mailman-coders/postorius/postorius_standalone |
If you get permission errors on this step, your ssh key is probably not in sync with what is on launchpad.net.
(postorius)$ pip install django (postorius)$ pip install django-social-auth |
(postorius)$ cd mailman (postorius)$ python bootstrap.py (postorius)$ bin/buildout (postorius)$ bin/test |
If you get no errors you can now start Mailman:
(postorius)$ bin/mailman start (postorius)$ cd .. |
At this point Mailman will not send nor receive any real emails. But that's fine as long as you only want to work on the components related to the ReST client or the web ui.
(postorius)$ cd mailman.client (postorius)$ python setup.py develop (postorius)$ cd .. |
(postorius)$ cd postorius (postorius)$ python setup.py develop (postorius)$ cd .. |
(postorius)$ cd postorius_standalone (postorius)$ python manage.py syncdb (postorius)$ python manage.py runserver |
Now go to http://localhost:8000 to see the web UI for mailman!