Skip to content

Instantly share code, notes, and snippets.

@mnem
Created March 20, 2012 14:55
Show Gist options
  • Select an option

  • Save mnem/2136505 to your computer and use it in GitHub Desktop.

Select an option

Save mnem/2136505 to your computer and use it in GitHub Desktop.
Installing pysvn on an Amazon Linux AMI.

Install subversion development packages:

sudo yum install --assumeyes subversion-devel

Create a build folder for pysvn and build it:

# Build pysvn from source
mkdir pysvn
cd pysvn
curl http://pysvn.barrys-emacs.org/source_kits/pysvn-1.7.6.tar.gz | tar -xvz
cd pysvn-1.7.6
python setup.py backport # Just incase
python setup.py configure
make

# Optionally test the build
cd ../Tests
make
cd ../Source/

# Install pysvn
sudo mkdir /usr/lib/python2.6/site-packages/pysvn
sudo cp pysvn/_pysvn*.so /usr/lib/python2.6/site-packages/pysvn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment