Saved for later reference

online repository of stuff I had to google for hours to figure out – and random snippets of code

Compiling Subversion Python bindings on Windows

Tags: , , , , , ,

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 and the dependencies


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 and 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 »


© 2009 Saved for later reference. All Rights Reserved.

This blog is powered by Wordpress and Magatheme by Bryan Helmig.