Install MapFish from Pypi
The official way to install MapFish involves using the go-mapfish-framework script, see documentation. When using the go-mapfish-framework script the mapfish and mapfish.plugin.client packages, and their dependencies, are downloaded from a dedicated repository hosted on www.mapfish.org.
mapfish and mapfish.plugin.client packages are also uploaded to the official Python package repository, http://pypi.python.org. The repository hosted on www.mapfish.org currently includes binary packages for Linux and Windows only, so MacOSX users cannot install MapFish from this repository and can rely on pypi instead.
To install mapfish, mapfish.plugin.client and their dependencies from pypi you can follow these steps:
- Make sure you have gcc, Python 2.5, PostgreSQL, and their development headers installed
- for MacOSX, install Python 2.5, PostgreSQL with macport, and gcc with xcode
- Create a virtual environment:
$ wget http://www.mapfish.org/downloads/virtualenv-1.3.4.py $ python virtualenv-1.3.4.py --no-site-packages env
- Make sure that the built-in python is not used by providing the path to python 2.5:
/opt/local/bin/python25 virtualenv-1.3.4.py --no-site-packages env
- Make sure that the built-in python is not used by providing the path to python 2.5:
- Activate this environment:
$ source env/bin/activate
- Install mapfish and its dependencies
(env) $ easy_install mapfish
- Install mapfish.plugin.client and its dependencies
(env) $ easy_install mapfish.plugin.client
