Adjust PyInstaller hiddenimports
_QOpenGLFunctions_2_0 was added in 2df9508e44 but
doesn't seem to be needed anymore. PyQt 6 doesn't seem to need any hiddenimports
at all.
This commit is contained in:
parent
e0bf66a191
commit
c29419b86a
|
|
@ -82,9 +82,7 @@ def get_data_files():
|
|||
|
||||
|
||||
def get_hidden_imports():
|
||||
# FIXME:qt6 double check if those are needed
|
||||
ver = "6" if "PYINSTALLER_QT6" in os.environ else "5"
|
||||
imports = [f'PyQt{ver}.QtOpenGL', f'PyQt{ver}._QOpenGLFunctions_2_0']
|
||||
imports = [] if "PYINSTALLER_QT6" in os.environ else ['PyQt5.QtOpenGL']
|
||||
for info in loader.walk_components():
|
||||
imports.append(info.name)
|
||||
return imports
|
||||
|
|
|
|||
Loading…
Reference in New Issue