aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/setup.py.in
diff options
context:
space:
mode:
authorTobias Mueller <[email protected]>2016-12-20 17:02:20 +0000
committerJustus Winter <[email protected]>2017-02-14 10:19:45 +0000
commitaa49be1ab80c200ab6b62d33bf5d0f5aa334fc56 (patch)
tree73b4e019d40bc1920b35748c20295a0cb1f9b61a /lang/python/setup.py.in
parentpython: Call SWIG_NewPointerObj rather than SWIG_Python_NewPointerObj. (diff)
downloadgpgme-aa49be1ab80c200ab6b62d33bf5d0f5aa334fc56.tar.gz
gpgme-aa49be1ab80c200ab6b62d33bf5d0f5aa334fc56.zip
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 <[email protected]>
Diffstat (limited to 'lang/python/setup.py.in')
-rwxr-xr-xlang/python/setup.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in
index c7f981ae..5b5d5bec 100755
--- a/lang/python/setup.py.in
+++ b/lang/python/setup.py.in
@@ -154,7 +154,7 @@ class BuildExtFirstHack(build):
py3 = [] if sys.version_info.major < 3 else ['-py3']
swige = Extension("gpg._gpgme", ["gpgme.i", "helpers.c"],
- swig_opts = ['-threads', '-builtin',
+ swig_opts = ['-threads',
'-outdir', 'gpg'] + py3 + extra_swig_opts,
include_dirs = include_dirs,
define_macros = define_macros,