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

SV: [PATCH] Building swig bindings outside the source tree

From: Morten Ludvigsen <morten_at_2ps.dk>
Date: 2002-10-19 18:44:02 CEST

Of course I only tested it in a seperate build tree :-/

I'll send a new patch when it works in the source tree as well :-)

Regards,

Morten Ludvigsen
2-People Software
Denmark

> -----Oprindelig meddelelse-----
> Fra: cmpilato@collab.net [mailto:cmpilato@collab.net]
> Sendt: 19. oktober 2002 18:18
> Til: Morten Ludvigsen
> Cc: Subversion - Dev
> Emne: Re: [PATCH] Building swig bindings outside the source tree
>
>
> "Morten Ludvigsen" <morten@2ps.dk> writes:
>
> > My first patch :-)
> >
> > In the INSTALL doc there is a description for building in a different
> > directory. This works for the main program, but not for the swig
> > bindings.
>
> I like the spirit of the patch, but I'm having trouble getting it
> work. I build in my source tree, if that helps you any:
> % make swig-py-ext
>
> (cd subversion/bindings/swig/python; \
> /usr/bin/python2 ./subversion/bindings/swig/python/setup.py
> \
> -I./subversion/bindings/swig \
> -I./subversion/include -I/usr/local/apache2/include \
> -S./subversion/bindings/swig \
> -L/usr/local/lib -L/usr/local/apache2/lib \
> build)
> /usr/bin/python2: can't open file
> './subversion/bindings/swig/python/setup.py'
> make: *** [swig-py-ext] Error 2
>
> Here's part of your adjusted Makefile rule for reference:
>
> swig-py-ext:
> (cd subversion/bindings/swig/python; \
> $(PYTHON) $(SWIG_SRC_DIR)/python/setup.py \
> [...]
>
> $(SWIG_SRC_DIR) is not guaranteed to be an absolute path, so cd'int
> into the swig/python dir, and then running a script under
> $(SWIG_SRC_DIR) could be ... well, you can see in my error above what
> it's trying to do.
>
> Awaiting your next patch,
> C-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 19 18:44:54 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.