PySvn in Ubuntu and Mac
October 2, 2008 Subversion, Ubuntu/Linux No CommentsMy main intention of building Subversion 1.5.1 is for PySvn 1.6.0 because it needs at least subversion 1.5.0.
Download source package from: https://launchpad.net/ubuntu/+source/pysvn/1.6.0-1.
* Untar the pysvn_1.6.0.orig.tar.gz into pysvn_1.6.0 directory
* Move to the Source directory:
octalina@desktop:~$ cd pysvn_1.6.0/Source
* Make sure subversion is installed
* Create the makefile:
octalina@desktop:~$ python setup.py configure
Info: Found Python include in /usr/include/python2.5
Info: Found PyCXX include in /home/octalina/pysvn-1.6.0/Import/pycxx-5.4.1
Info: Found PyCXX Source in /home/octalina/pysvn-1.6.0/Import/pycxx-5.4.1/Src
Info: Found SVN include in /usr/local/include/subversion-1
Info: Found APR include in /usr/local/apr/include/apr-1
Info: Found SVN library in /usr/local/lib
Info: Found APR library in /usr/local/apr/lib
Info: Creating Makefile for Source
Info: Building against SVN 1.5.1
Info: Creating Makefile for Tests
* compile the source code:
make
* Install pysvn by copying the extension from pysvn_1.6.0/Source.pysvn to python site-specific directory. e.g. normally Python 2.5 will be installed in /usr/lib/Python2.5
mkdir python-libdir/site-packages/pysvn
cp pysvn/__init__.py python-libdir/site-packages/pysvn
cp pysvn/_pysvn*.so python-libdir/site-packages/pysvn
Test on pysvn installtion:
octalina@octalina-desktop:~$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pysvn
>>>
