[PATCH 1/4] python: Conditionally provide py3 argument to SWIG

Justus Winter justus at g10code.com
Tue Feb 14 13:04:48 CET 2017


Hello :)

Tobias Mueller <muelli at cryptobitch.de> writes:

> * lang/python/setup.py.in: Only call with -py3 when we run under python3
> or higher.
> --
>
> If we ever remove the -builtin flag and leave the the -py3 flag, SWIG
> will generate Python code which will be incompatible with Python 2,
> because the py3 flag generates python3 code which is incompatible with
> python2.
>
> So we conditionally generate SWIG bindings with -py3.

Indeed, and with -builtin gone, this actually caused a problem with our
build system.  I fixed this by using one copy of the sources per Python
version, so that SWIG can inject its version-specific wrapper file
there.

I merged this patch and the rest of the series.  Many thanks.


Cheers,
Justus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: </pipermail/attachments/20170214/e85a8887/attachment.sig>


More information about the Gnupg-devel mailing list