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

Re: swig bindings

From: Arkadiusz Miskiewicz <misiek_at_pld.ORG.PL>
Date: 2002-08-03 01:09:31 CEST

Daniel Berlin <dberlin@dberlin.org> writes:

> > Subversion installs a library to /usr/local/lib/libsvn_swig_py-1.so, but
> > that's it.
>
> python setup.py install in the swig/python dir.
btw. there is problem that you can't build python bindings without
installing svn libs - ie.

 ./configure
 make
 cd subversion/bindings/swig/python
 python setup.py build

simply won't work because library paths are hardcoded.
In some cases like creating rpm packages this always needs
patching since when creating rpm libraries are never installed
in real $(libdir) directory but instead in $(DESTDIR)/$(libdir).

I'm using this patch to build RPM packages with subversion:

diff -urN subversion-r1587.org/subversion/bindings/swig/python/setup.py subversion-r1587/subversion/bindings/swig/python/setup.py
--- subversion-r1587.org/subversion/bindings/swig/python/setup.py Fri Apr 12 18:33:13 2002
+++ subversion-r1587/subversion/bindings/swig/python/setup.py Fri Apr 12 18:38:11 2002
@@ -21,8 +21,8 @@
 from distutils.command import build_ext
 from distutils import dir_util
 
-INC_DIRS=['..', '../../../include', '../../../../apr/include']
-LIB_DIRS=['/usr/local/svn/lib']
+INC_DIRS=['..', '../../../include', '/usr/include/apache']
+LIB_DIRS=['/usr/lib','../../../libsvn_delta/.libs','../.libs','../../../libsvn_ra/.libs','../../../libsvn_subr/.libs','../../../libsvn_fs/.libs','../../../libsvn_repos/.libs']
 
 class build_swig(build_ext.build_ext):
   def initialize_options(self):

-- 
Arkadiusz Mi¶kiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 3 11:51:11 2002

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

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