Hello, 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
--- 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
pgpkxvg8125XW.pgp
Description: PGP signature
_______________________________________________ SlackBuilds-users mailing list [email protected] http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - http://slackbuilds.org/faq/
