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

Re: [PATCH] (Re?)allow the creation of release tarballs that support py2 bindings

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 13 Apr 2020 10:30:19 +0200

On Thu, Apr 09, 2020 at 06:09:30PM +0000, Michael Pilato wrote:
> For your consideration, a patch to allow the creation of release tarballs that support py2 bindings (instead of py3 ones).
>
> -- Mike

I don't see why not. Without doubt we will see people trying to compile
Subversion 1.14 on some old RedHat system and this could help them.

+1 to commit :)

> Allow the creation of a release tarball that supports py2 bindings.
>
> * build/generator/gen_make.py
> (write_standalone): Allow environmental override of the SWIG_PY_OPTS
> value written to autogen-standalone.mk.
>
> Index: build/generator/gen_make.py
> ===================================================================
> --- build/generator/gen_make.py (revision 1876320)
> +++ build/generator/gen_make.py (working copy)
> @@ -511,7 +513,9 @@
> standalone.write('top_srcdir = .\n')
> standalone.write('top_builddir = .\n')
> standalone.write('SWIG = swig\n')
> - standalone.write('SWIG_PY_OPTS = -python -py3 -nofastunpack -modern\n')
> + swig_py_opts = os.environ.get('SWIG_PY_OPTS',
> + '-python -py3 -nofastunpack -modern')
> + standalone.write('SWIG_PY_OPTS = %s\n' % (swig_py_opts))
> standalone.write('PYTHON = ' + sys.executable + '\n')
> standalone.write('\n')
> standalone.write(open("build-outputs.mk","r").read())
Received on 2020-04-13 10:30:36 CEST

This is an archived mail posted to the Subversion Dev mailing list.