Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hooks: fix pypylon hook for PyInstaller >= 6.0
Fix the `pypylon` hook for compatibility with PyInstaller >= 6.0. The `collect_data_files(..., include_py_files=True)` does not include binary extensions anymore, and PyInstaller 6.2 (pyinstaller/pyinstaller@ecc218c) fixed the module exclusion for relative imports; so the extensions that hook tries to exclude actually end up excluded without being collected via the alternative codepath. Presumably that part of hook was needed on older PyInstaller versions, so keep it around, but disable it for PyInstaller >= 6.0.
- Loading branch information