-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hookutils: qt: look for commercial pyqt to determine layout
Commercial PyQt wheels install with the "_commercial" suffix as their package name but still make the regular PyQt5/PyQt6 namespace packages available. This leads the layout detection logic to assume the old layout because is_module_satisfies() enters a fallback code path where it looks for the __version__ attribute inside the namespace package, which doesn't exist. A possible solution is to look for package names with the "_commercial" suffix when the standard lookup fails. The _use_new_layout utility method was introduced to perform such checks and is then used in both PyQt5 and PyQt6 code paths.
- Loading branch information
1 parent
ff7e1e8
commit 8bcf8a5
Showing
2 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for commercial PyQt5 and PyQt6 wheels. |