[Slackbuilds-users] Addition to subversion-bindings SlackBuild

Audrius Kažukauskas neobug at tornado.ktu.lt
Mon Dec 8 17:38:00 UTC 2008


I would like to propose attached patch for subversion-bindings build
script.  This puts Python bindings to system-wide site-packages
directory (where they belong) and makes them visible to Mercurial
convert extension (and other tools which might look there); also no need
to add

  import sys
  sys.path.insert(0, '/path/to/bindings')

before the imports of bindings themselves to your personal Python code.

Audrius Kažukauskas
-------------- next part --------------
--- subversion-bindings.SlackBuild.orig	2008-11-29 07:11:17.000000000 +0200
+++ subversion-bindings.SlackBuild	2008-12-08 19:19:03.000000000 +0200
@@ -84,6 +84,12 @@
 make swig-py
 make install-swig-py DESTDIR=$PKG
+# Move Python bindings to system-wide site-packages
+PY_VER=$(python -c 'import sys; print "%d.%d" % sys.version_info[:2]')
+mkdir -p $PKG/usr/lib/python$PY_VER/site-packages
+mv $PKG/usr/lib/svn-python/* $PKG/usr/lib/python$PY_VER/site-packages
+rmdir $PKG/usr/lib/svn-python
 # Perl bindings
 make swig-pl
 make install-swig-pl DESTDIR=$PKG
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20081208/4fe150c9/attachment.sig>

More information about the SlackBuilds-users mailing list