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

Re: How can i build subversion python binding

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2007-01-16 01:52:56 CET

The bindings INSTALL file actually says how to handle this:

  4. Make sure that whatever directory the bindings got installed in
       is in your PYTHONPATH. That directory depends on how you
       installed; a typical location is /usr/local/lib/svn-python/.

       An nice way to do this is:
       $ echo /usr/local/lib/svn-python \
> /usr/lib/python2.x/site-packages/subversion.pth

On 1/15/07, Daniel Rall <dlr@collab.net> wrote:
> Ying, this type of question is inappropriate for this mailing list,
> which is about the development of Subversion itself. Please take this
> discussion to the users@ mailing list.
>
> That said, it looks like you haven't adjusted Python's sys.path to
> include the Python bindings. You can do so by setting the PYTHONPATH
> environment variable, or manipulating sys.path directly. Try this:
>
> $ PYTHONPATH=/usr/local/subversion/lib/svn-python python -c 'from svn import client'
> $
>
> - Dan
>
> On Mon, 15 Jan 2007, ying lcs wrote:
>
> > Thanks. I have following the documentation and install SWIG,
> > recompiles subversion and do a 'make swig-py' and 'make
> > intall-swig-py'
> >
> > But when I try to test it via python -c "from svn import client", I
> > get this error message 'svn' is not found:
> >
> > # python -c "from svn import client"
> > Traceback (most recent call last):
> > File "<string>", line 1, in ?
> > ImportError: No module named svn
> >
> > I have checked I have sub-directories 'libsvn', 'svn' under
> > /usr/local/lib/svn-python/
> >
> > cd /usr/local/lib/svn-python/
> > [root@localhost svn-python]# ls
> > libsvn svn
> >
> > Please tell me what am I missing. I appreciate your help.
> >
> > On 1/15/07, Ben Collins-Sussman <sussman@red-bean.com> wrote:
> > >At the bottom of the INSTALL file, there are these instructions:
> > >
> > >
> > >V. PROGRAMMING LANGUAGE BINDINGS (PYTHON, PERL, RUBY, JAVA)
> > > ========================================================
> > >
> > > For Python, Perl and Ruby bindings, see the file
> > >
> > > ./subversion/bindings/swig/INSTALL
> > >
> > >
> > >
> > >
> > >On 1/15/07, ying lcs <yinglcs@gmail.com> wrote:
> > >> Hi,
> > >>
> > >> I download subversion source code, but in the '.configure' I cant'
> > >> find an option which build python binding. Can you please tell me how
> > >> can I build subversion python binding?
> > >>
> > >> Thank you.
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > >> For additional commands, e-mail: dev-help@subversion.tigris.org
> > >>
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jan 16 01:53:06 2007

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.