]> sigrok.org Git - libsigrok.git/commitdiff
python: Release GIL during libsigrok calls.
authorMartin Ling <redacted>
Wed, 17 Apr 2013 13:01:19 +0000 (14:01 +0100)
committerMartin Ling <redacted>
Wed, 17 Apr 2013 13:01:19 +0000 (14:01 +0100)
bindings/python/setup.py

index 953fa639a693b18ac574538a6dc6900a8bc9aa21..6c23efff30e50619b2de569c96618280fcb11510 100644 (file)
@@ -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')]