Skip to content

Commit

Permalink
hooks: IPython: update exclude list for GUI frameworks
Browse files Browse the repository at this point in the history
Update exclude list for GUI frameworks with contemporary Qt
bindings (`PySide2`, `PySide6`, and `PyQt6`).
  • Loading branch information
rokm committed Feb 25, 2024
1 parent 47c1e42 commit 8119cfb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions news/708.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update the exclude list for GUI frameworks in the ``IPython`` hook with
additional contemporary Qt bindings (``PySide2``, ``PySide6``, and ``PyQt6``).
11 changes: 10 additions & 1 deletion src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-IPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@
# Ignore GUI libraries. IPython supports integration with GUI frameworks.
# Assume that it will be imported by any other module when the user really
# uses it.
excludedimports = ['gtk', 'matplotlib', 'PyQt4', 'PyQt5', 'PySide']
excludedimports = [
'gtk',
'matplotlib',
'PySide',
'PyQt4',
'PySide2',
'PyQt5',
'PySide6',
'PyQt6',
]

# IPython uses 'tkinter' for clipboard access on Linux/Unix. Exclude it on Windows and OS X.
if is_win or is_darwin:
Expand Down

0 comments on commit 8119cfb

Please sign in to comment.