Home GnuPG
Diffusion GPGME d184dbbba898

python: Conditionally provide py3 argument to SWIG
d184dbbba898Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Conditionally provide py3 argument to SWIG

* 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.

  • Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>

Details

Provenance
4tmuelleAuthored on Dec 20 2016, 6:00 PM
justusCommitted on Feb 14 2017, 11:19 AM
Parents
rMfe65a26ab584: python: Use one copy of the source tree per Python version.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rMd184dbbba898: python: Conditionally provide py3 argument to SWIG (authored by Tobias Mueller <muelli@cryptobitch.de>).Feb 14 2017, 11:19 AM