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

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

From: <cmpilato_at_collab.net>
Date: 2002-10-19 18:17:51 CEST

"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:20:09 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.