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

[PATCH] Building swig bindings outside the source tree - third edition

From: Morten Ludvigsen <morten_at_2ps.dk>
Date: 2002-10-20 15:36:33 CEST

My first patch - third edition :-)

The second edition was killed by Outlook :-/

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.

This patch should fix that.

This time it should work in both the source tree and in a different build
dir.

If installing from a build in a different tree using "make
install-swig-py-ext"
two new warnings are generated:

  running install
  running build
  running build_py
* warning: build_py: package init file 'svn/__init__.py' not found (or not a
regular file)
* warning: build_py: package init file 'svn/__init__.py' not found (or not a
regular file)
  running build_ext
  skipping '_client' extension (up-to-date)
  skipping '_delta' extension (up-to-date)
  ...

As far as I can tell this is ugly but benign :-)
The file "svn/__init__.py" has already been copied
in "make swig-py-ext".

Regards,

Morten Ludvigsen
2-People Software
Denmark

Log:

Fixed configuration so that SWIG python bindings can be built outside
the source tree.

* Makefile.in
  Created new variables for swig directories:
  SWIG_SRC_DIR - the swig source directory in the source tree.
  SWIG_BUILD_DIR - the directory where swig bindings are built.
  SWIG_DIRS - the swig direcotries in the build tree.

  (mkdir-init): Make the directories in SWIG_DIRS.

  (swig-py-ext): Use symbolic directory references using SWIG_SRC_DIR.
                 Also specify the source dir for swig.

  (install-swig-py-ext): Use symbolic directory references using
SWIG_SRC_DIR.
                         Also specify the source dir for swig.

* subversion/bindings/swig/python/setup.py
  Added command line argument (-S) to specify the source directory.

Patch:

See attachment

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Oct 20 15:37:28 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.