geo/qgis: unbreak pyqgis deadlocks in threaded code at runtime
cf https://github.com/qgis/QGIS/pull/45128#issuecomment-958529173 and https://github.com/qgis/QGIS/pull/45829
This commit is contained in:
parent
174617b6ab
commit
46dd61808d
15
geo/qgis/patches/patch-python_3d_project_py_in
Normal file
15
geo/qgis/patches/patch-python_3d_project_py_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-python_3d_project_py_in,v 1.1 2021/11/03 11:48:43 landry Exp $
|
||||
|
||||
https://github.com/qgis/QGIS/pull/45829
|
||||
|
||||
Index: python/3d/project.py.in
|
||||
--- python/3d/project.py.in.orig
|
||||
+++ python/3d/project.py.in
|
||||
@@ -37,6 +37,7 @@ class Qgis3D(PyQtBindings):
|
||||
super().__init__(project, '3d')
|
||||
self.sip_file = '3d.sip'
|
||||
self.exceptions = True
|
||||
+ self.release_gil = True
|
||||
self.disabled_features = "@SIP_DISABLE_FEATURES@".split(";")
|
||||
|
||||
def apply_user_defaults(self, tool):
|
15
geo/qgis/patches/patch-python_analysis_project_py_in
Normal file
15
geo/qgis/patches/patch-python_analysis_project_py_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-python_analysis_project_py_in,v 1.1 2021/11/03 11:48:43 landry Exp $
|
||||
|
||||
https://github.com/qgis/QGIS/pull/45829
|
||||
|
||||
Index: python/analysis/project.py.in
|
||||
--- python/analysis/project.py.in.orig
|
||||
+++ python/analysis/project.py.in
|
||||
@@ -37,6 +37,7 @@ class QgisAnalysis(PyQtBindings):
|
||||
super().__init__(project, 'analysis')
|
||||
self.sip_file = 'analysis.sip'
|
||||
self.exceptions = True
|
||||
+ self.release_gil = True
|
||||
self.disabled_features = "@SIP_DISABLE_FEATURES@".split(";")
|
||||
|
||||
def apply_user_defaults(self, tool):
|
15
geo/qgis/patches/patch-python_core_project_py_in
Normal file
15
geo/qgis/patches/patch-python_core_project_py_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-python_core_project_py_in,v 1.1 2021/11/03 11:48:43 landry Exp $
|
||||
|
||||
https://github.com/qgis/QGIS/pull/45829
|
||||
|
||||
Index: python/core/project.py.in
|
||||
--- python/core/project.py.in.orig
|
||||
+++ python/core/project.py.in
|
||||
@@ -37,6 +37,7 @@ class QgisCore(PyQtBindings):
|
||||
super().__init__(project, 'core')
|
||||
self.sip_file = 'core.sip'
|
||||
self.exceptions = True
|
||||
+ self.release_gil = True
|
||||
self.disabled_features = "@SIP_DISABLE_FEATURES@".split(";")
|
||||
|
||||
def apply_user_defaults(self, tool):
|
15
geo/qgis/patches/patch-python_gui_project_py_in
Normal file
15
geo/qgis/patches/patch-python_gui_project_py_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-python_gui_project_py_in,v 1.1 2021/11/03 11:48:43 landry Exp $
|
||||
|
||||
https://github.com/qgis/QGIS/pull/45829
|
||||
|
||||
Index: python/gui/project.py.in
|
||||
--- python/gui/project.py.in.orig
|
||||
+++ python/gui/project.py.in
|
||||
@@ -37,6 +37,7 @@ class QgisGui(PyQtBindings):
|
||||
super().__init__(project, 'gui')
|
||||
self.sip_file = 'gui.sip'
|
||||
self.exceptions = True
|
||||
+ self.release_gil = True
|
||||
self.disabled_features = "@SIP_DISABLE_FEATURES@".split(";")
|
||||
|
||||
def apply_user_defaults(self, tool):
|
15
geo/qgis/patches/patch-python_server_project_py_in
Normal file
15
geo/qgis/patches/patch-python_server_project_py_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-python_server_project_py_in,v 1.1 2021/11/03 11:48:43 landry Exp $
|
||||
|
||||
https://github.com/qgis/QGIS/pull/45829
|
||||
|
||||
Index: python/server/project.py.in
|
||||
--- python/server/project.py.in.orig
|
||||
+++ python/server/project.py.in
|
||||
@@ -37,6 +37,7 @@ class QgisServer(PyQtBindings):
|
||||
super().__init__(project, 'server')
|
||||
self.sip_file = 'server.sip'
|
||||
self.exceptions = True
|
||||
+ self.release_gil = True
|
||||
self.disabled_features = "@SIP_DISABLE_FEATURES@".split(";")
|
||||
|
||||
def apply_user_defaults(self, tool):
|
Loading…
Reference in New Issue
Block a user