Sunday, March 1, 2009

Installing pysvn on OSX Leopard

Here are the steps I took to install pysvn, a python module for subversion, from source on OSX Leopard.

Assuming you're using macports:

sudo port install python26 (follow any instructions it has)
sudo port install subversion (1.5.6 at time of my install)
sudo port install db43 (whichever version of Berkeley DB you installed, updated the sed line below pointing to the right directory).

Download the pysvn source code.

tar -xzvf [file you downloaded]
cd [directory where you uncompressed the file to]

python configure

sed -i .backup -e "14s@\(.*\) /opt/local/lib/libsvn_ra_dav-1.a \(.*\)/opt/local/lib/libdb-4.3.a \(.*\)@\1 \2 \3 /opt/local/lib/libsvn_ra_neon-1.a /opt/local/lib/libsvn_ra_serf-1.a /opt/local/lib/libserf-0.a /opt/local/lib/libsvn_fs_util-1.a /opt/local/lib/db43/libdb-4.3.a -lsasl2@" Makefile


sudo cp -r pysvn /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages

(sed line taken from here:

No comments:

Post a Comment