I tried finding good instructions on building the Python SVN bindings (for use with Trac), but the included readme file is based on Visual C++ 5.0/6.0 (which I remember using back in ’98), and leaves out a few crucial steps.
So, this how-to will explain the process of building SVN bindings for Python 2.6 on Windows.
What you’ll need:
- Visual C++ 2008 Express Edition (Visual Studio 2008 will also work, but will base this on free downloads)
- Swig (I used swigwin-1.3.39 specifically, but any newer version should do)
- Subversion source – grab both the source file subversion-1.6.0.zip and the dependencies subversion-deps-1.6.0.zip
Preparing
Start with installing VC++ 2008 Express and Python if you haven’t already, then create a folder to store the source trees (I used C:\Temp – and will use that folder in the instructions here for simplicity). Unpack Swig to C:\Temp\swig, and subversion-1.6.0.zip and subversion-deps-1.6.0.zip to C:\Temp (which should create the folder “C:\Temp\subversion-1.6.0″).
Make sure you have C:\Python26 in your path.
Read the rest of this entry »
Recent Comments