MailmanWiki

By and large, setting up Mailman on a mac is the same as on linux, and you can use A 5 minute guide to get the Mailman web UI running.

However, the stock version of python does not work.  YOU WILL NEED TO INSTALL PYTHON FROM ANOTHER SOURCE.  Below are several possible ways to do this using macports, fink or homebrew.  YOU ONLY NEED TO FOLLOW ONE SET OF INSTRUCTIONS ON THIS PAGE.  Just make sure you have a version of python installed other than the mac default, and then make sure that it is the one being used.

Macports/Fink instructions

Install python 2.7.  The command is something like this for macports:

port install python27

And this for fink:

apt-get install python27

Make sure that the python you are using is this new version.  e.g. change the links in /usr/bin, edit your PATH so it comes first, etc.

Homebrew setup instructions

The below has you installing and using homebrew and virtualenv.  

$ ruby <(curl -fsSkL [[http://raw.github.com/mxcl/homebrew/go|raw.github.com/mxcl/homebrew/go]])
$ brew install python
$ echo "export PATH=/usr/local/share/python:$PATH" >> ~/.bash_profile
$ source ~/.bash_profile
$ brew install bazaar
$ pip install distribute

Install virtualenv and virtualenvrapper

$ pip install virtualenv
$ pip install virtualenvwrapper
$ echo "export WORKON_HOME=$HOME/.virtualenvs" >> ~/.bash_profile
$ echo "source `which virtualenvwrapper.sh`" >> ~/.bash_profile
$ export WORKON_HOME=$HOME/.virtualenvs
$ source virtualenvwrapper.sh ]] ></ac:plain-text-body>

Create the postortius virtual environment.

$ mkvirtualenv postorius
New python executable in postorius/bin/python
Installing setuptools............done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating {your_home_directory}/.virtualenvs/postorius/bin/predeactivate
virtualenvwrapper.user_scripts creating {your_home_directory}/.virtualenvs/postorius/bin/postdeactivate
virtualenvwrapper.user_scripts creating {your_home_directory}/.virtualenvs/postorius/bin/preactivate
virtualenvwrapper.user_scripts creating {your_home_directory}/.virtualenvs/postorius/bin/postactivate
virtualenvwrapper.user_scripts creating {your_home_directory}/.virtualenvs/postorius/bin/get_env_details
(postorius) $

You should now see (postorius) before your prompt.

For setup on Windows, and more advanced setup, see the Virtualenvwrapper documentation: [[http://virtualenvwrapper.readthedocs.org/en/latest/install.html|http://virtualenvwrapper.readthedocs.org/en/latest/install.html]]


MailmanWiki: DEV/Mac Mailman development setup guide (last edited 2013-04-19 22:31:11 by xwuang)