HOWTO: Installing Spring Python and its dependencies
Depending on your exact needs and the work environment, there are several ways to install Spring Python with its dependencies and this post will go through what’s available.
First thing is, install pip, this is the command line tool to use for installing Python software.
Here are the installation options:
- Telling pip to fetch it from PyPI and then install it, type:
- pip install springpython, this will download the latest version – currently it’s 1.2.0RC1 – from the remote repository and install it
- Downloading the source installer from the Spring Source site manually – the link always points to the latest release of Spring Python though you can also pick from any previous releases. At the time of this writing, the latest release is springpython-1.2.0.RC1.tar.gz, place it in any directory and type pip install springpython-1.2.0.RC1.tar.gz to install it.
- Using the latest git version (read only) – create a directory, cd to it and type:
- git clone git://git.springsource.org/spring-python/spring-python.git, this will create a local clone of the latest version of the source code
- cd spring-python
- python build.py –package, note the name of a tar.gz package that will be created, in my case it was springpython-1.3.0.BUILD-20101216115817
- pip install target/artifacts/springpython-1.3.0.BUILD-20101216115817.tar.gz to install the newly built package
- Using the latest git version (read/write, for core developers) – same as the previous point except for the first command, its should be git clone git@git.springsource.org:spring-python/spring-python.git, note that the command is very similar to the previous one and for me personally it used to be a source of confusion, but that I guess is a git thing.
- Using the DEB installer created by Sven Wilhelm and Miguel Landaeta
- Add deb http://ppa.wiredobjects.eu/springpython/ppa/debian experimental main to /etc/apt/sources.list
- Issue sudo apt-get update && apt-get sudo install python-springpython to refresh the sources list and install Spring Python
- Note there’s ‘debian’ in the name but I’ve had no problems with using the DEB on Ubuntu 10.04
A word on the project’s dependencies. The commands above will install Spring Python but it still doesn’t mean you’ll be able to make use of each and every piece of functionality. The installation methods mentioned above haven’t been (yet) broken into smaller ones, each of which could express its own concrete dependencies and on the other hand, adding a huge list of mandatory dependencies would clearly be an overkill, after all, not every project needs to access XML, Yaml, Oracle, Postgres, JMS WebSphere MQ, Pyro, Hessian, CherryPy and other external resources at the same time
So, once you install Spring Python, you still need to check the documentation for a list of things to install before you can start using a given Spring Python’s feature. Each chapter has a section devoted to listing all the dependencies or stating that a stock Python distribution will do, see for instance Security, AOP, IoC, JMS and Remoting.
I hope it sheds some light on the matter, in case you need any help, be sure to drop in the forum, mailing list or the IRC channel (#springpython on Freenode network). See you!


