Skip to content

Commit 5b105c0

Browse files
committed
Remove pre-initialization of extra_deps not needed
1 parent c280451 commit 5b105c0

File tree

2 files changed

+0
-275
lines changed

2 files changed

+0
-275
lines changed

__init__.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -29,46 +29,12 @@
2929
"""
3030

3131

32-
from qgis.PyQt.QtCore import QCoreApplication
33-
from qgis.PyQt.QtWidgets import QMessageBox
34-
35-
from ThRasE.utils.extra_deps import load_install_extra_deps, WaitDialog
36-
37-
38-
def pre_init_plugin(iface):
39-
app = QCoreApplication.instance()
40-
parent = iface.mainWindow()
41-
dialog = None
42-
log = ''
43-
try:
44-
for msg_type, msg_val in load_install_extra_deps():
45-
app.processEvents()
46-
if msg_type == 'log':
47-
log += msg_val
48-
elif msg_type == 'needs_install':
49-
dialog = WaitDialog(parent, 'ThRasE - installing dependencies')
50-
elif msg_type == 'install_done':
51-
dialog.accept()
52-
except Exception as e:
53-
if dialog:
54-
dialog.accept()
55-
QMessageBox.critical(parent, 'ThRasE - installing dependencies',
56-
'An error occurred during the installation of Python packages. ' +
57-
'Click on "Stack Trace" in the QGIS message bar for details.')
58-
raise RuntimeError('\nThRasE: Error installing Python packages. Read install instruction: '
59-
'https://smbyc.github.io/ThRasE\nLog:\n' + log) from e
60-
61-
6232
# noinspection PyPep8Naming
6333
def classFactory(iface): # pylint: disable=invalid-name
6434
"""Load ThRasE class from file ThRasE.
6535
6636
:param iface: A QGIS interface instance.
6737
:type iface: QgsInterface
6838
"""
69-
# load/install extra python dependencies
70-
#pre_init_plugin(iface)
71-
72-
#
7339
from .thrase import ThRasE
7440
return ThRasE(iface)

utils/extra_deps.py

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)