From: Martin Ling Date: Wed, 17 Apr 2013 13:01:19 +0000 (+0100) Subject: python: Release GIL during libsigrok calls. X-Git-Tag: dsupstream~114 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cccb59914799002df75299ec98da132fcccfaac0;p=libsigrok.git python: Release GIL during libsigrok calls. --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 953fa639..6c23efff 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -38,7 +38,7 @@ setup( ext_modules = [ Extension('sigrok.core._lowlevel', sources = ['sigrok/core/lowlevel.i'], - swig_opts = sr_includes, + swig_opts = ['-threads'] + sr_includes, include_dirs = [i[2:] for i in sr_includes if i.startswith('-I')], library_dirs = [l[2:] for l in sr_libs if l.startswith('-L')], libraries = [l[2:] for l in sr_libs if l.startswith('-l')]