7

I'm trying to use the python subversion SWIG libraries in a virtualenv --no-site-packages environment. How can I make this work?

Diarmuid Bourke
  • 464
  • 4
  • 13

3 Answers3

5

You can install it inside virtualenv from svn:

source /home/you/venv/python/bin/activate
pip install -e svn+http://pysvn.tigris.org/svn/pysvn/tags/pysvn/Extension/1.7.6/#egg=pysvn
Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48
3

This blog post answers my question nicely. http://codersbuffet.blogspot.com/2009/09/mercurial-subversion-and-virtualenv.html

Diarmuid Bourke
  • 464
  • 4
  • 13
  • That doesn't seem very "deployable". That solution will work for a machine at a time. I wonder if there is a way to do this in a generic way using requirements.txt or setuptools. – sholsapp Feb 07 '12 at 19:31
1

According to Maciek Sawicki answer:

. ap/bin/activate
(ap) $ pip install http://pysvn.barrys-emacs.org/source_kits/pysvn-1.7.6.tar.gz