Home GnuPG
Diffusion GPGME aa49be1ab80c

python: Remove the -builtin flag for SWIG.
aa49be1ab80cUnpublished

Unpublished Commit ยท Learn More

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

Description

python: Remove the -builtin flag for SWIG.

* lang/python/setup.py.in: Call SWIG without the builtin flag.

The SWIG documentation
http://www.swig.org/Doc2.0/Python.html#Python_nn28 leaves the
impression that -builtin is solely for increasing performance:

New in SWIG version 2.0.4: The use of Python proxy classes has
performance implications that may be unacceptable for a high-
performance library. The new -builtin option instructs SWIG to
forego the use of proxy classes, and instead create wrapped types as
new built-in Python types. When this option is used, the following
section ("Proxy classes") does not apply. Details on the use of the
-builtin option are in the Built-in Types section.

While not wasting CPU cycles is good, it also prevents Python code being
written in the wrapper itself. That, however, may be useful to make it
easier to extend the wrapper.

Partially reverts: 856bcfe2934237011984fab0bc69800a7c25c34b

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

Details

Provenance
4tmuelleAuthored on Dec 20 2016, 6:02 PM
justusCommitted on Feb 14 2017, 11:19 AM
Parents
rMd35651917097: python: Call SWIG_NewPointerObj rather than SWIG_Python_NewPointerObj.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rMaa49be1ab80c: python: Remove the -builtin flag for SWIG. (authored by Tobias Mueller <muelli@cryptobitch.de>).Feb 14 2017, 11:19 AM