[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Building Python bindings

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-04-09 19:28:02 CEST

Aaron Bingham wrote:
> Hi,
>
> I am having troubling building the SWIG Python bindings. I am running
> on Debian Woody, and have installed Python-2.3.5, httpd-2.0.53,
> SWIG-1.3.21, and subversion-1.1.3 from source using the Graft package
> manager. Apache and the Subversion module for Apache work flawlessly,
> but my build of the SWIG Python bindings is still broken.
>
> SWIG was configured like this:
>
> ./configure --prefix=/pkgs/SWIG-1.3.21 --with-python=/usr/local/bin/python
>
> make; make install did not install libswigpy.so, so I tried following
> the instructions at http://wiki.bwerp.net/Subversion and ran the
> following commands:
>
> echo '%module swigrun' > swigrun.i
> swig -runtime -python swigrun.i
> gcc -I/usr/local/include/python2.3 -fpic -c swigrun_wrap.c
> gcc -shared swigrun_wrap.o -o libswigpy.so
> install -o root -g root -m 755 libswigpy.so /pkgs/SWIG-1.3.21/lib

I am afraid I have no answers to your end problem, but the above is a crude
hack designed for swig 1.3.22. When using swig 1.3.21, you should simply use
"make runtime && make install-runtime".

You might be able to dodge your end problem by simply upgrading to swig
1.3.24 (which eliminates the need for libswigpy entirely) and subversion
1.1.4 (which adds support for swig 1.3.24).

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Apr 9 19:30:32 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.