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

SWIG_PY_OPTS question (Re: svn commit: r1875742 - /subversion/trunk/build/generator/gen_make.py)

From: Stefan Sperling <stsp_at_apache.org>
Date: Fri, 27 Mar 2020 00:55:49 +0100

Can anyone tell whether we need to pass additional options to
swig via SWIG_PY_OPTS at this stage? Do we need -py3 for example?

On Thu, Mar 26, 2020 at 11:24:54PM -0000, stsp_at_apache.org wrote:
> Author: stsp
> Date: Thu Mar 26 23:24:54 2020
> New Revision: 1875742
>
> URL: http://svn.apache.org/viewvc?rev=1875742&view=rev
> Log:
> Fix autogen.sh SWIG python bindings generation in --release mode.
>
> This was accidentally broken in r1869354 (merge swig-py3 branch to trunk).
>
> * build/generator/gen_make.py: When generating autogen-standlone.mk, set
> SWIG_PY_OPTS to "-python". Otherwise swig gets invoked without any
> language options and SWIGPYTHON ends up being undefined. Swig is then
> unable to parse subversion/bindings/swig/include/svn_containers.swg
> because that file relies on the macro definition "hash_argout_typemap"
> which only takes effect if SWIGPYTHON is defined by swig.
>
> Modified:
> subversion/trunk/build/generator/gen_make.py
>
> Modified: subversion/trunk/build/generator/gen_make.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/build/generator/gen_make.py?rev=1875742&r1=1875741&r2=1875742&view=diff
> ==============================================================================
> --- subversion/trunk/build/generator/gen_make.py (original)
> +++ subversion/trunk/build/generator/gen_make.py Thu Mar 26 23:24:54 2020
> @@ -511,6 +511,7 @@ class Generator(gen_base.GeneratorBase):
> standalone.write('top_srcdir = .\n')
> standalone.write('top_builddir = .\n')
> standalone.write('SWIG = swig\n')
> + standalone.write('SWIG_PY_OPTS = -python\n')
> standalone.write('PYTHON = ' + sys.executable + '\n')
> standalone.write('\n')
> standalone.write(open("build-outputs.mk","r").read())
>
>
>
Received on 2020-03-27 00:55:53 CET

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.