I'm trying to use the python subversion SWIG libraries in a virtualenv --no-site-packages
environment. How can I make this work?
Asked
Active
Viewed 4,092 times
7

Diarmuid Bourke
- 464
- 4
- 13
-
3Why do you say it's impossible? Do you see an error when you try? What did you try? If you see the error, what is it? – Noufal Ibrahim Jan 28 '11 at 17:10
-
Problem is that official installation way is using apt-get and there is no package at pypi repo. – Maciek Sawicki Apr 13 '12 at 13:20
3 Answers
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

Gunnar Thielebein
- 11
- 1