Skip to content

Implement GStreamer plugin collection options - #7040

Merged
rokm merged 2 commits into
pyinstaller:developfrom
rokm:hookconfig-gst-plugins
Aug 23, 2022
Merged

rokm merged 2 commits into
pyinstaller:developfrom
rokm:hookconfig-gst-plugins

Conversation

@rokm

@rokm rokm commented Aug 22, 2022

Copy link
Copy Markdown
Member

Implement new gstreamer hook configuration group with include_plugins and exclude_plugins options that enable control over GStreamer plugins collected by the gi.repository.Gst hook.

The include/exclude decision function is added as a new generic hook utility function, because I plan to re-use it once I tackle Qt plugin collection in Qt hooks...

@rokm

rokm commented Aug 22, 2022 •

Copy link
Copy Markdown
Member Author

I would really, really like for exaile music player to switch to upstream PyInstaller versions instead of using a custom fork for its Windows builds. Currently, the blocker is the fact that a filtering functionality like the one of #3608 is needed to exclude (some of) unnecessary GStreamer plugins (before they are scanned for dependencies and end up pulling in everything but the kitchen sink).

While the general-purpose pre-binary-analysis-hook concept from #3608 would prove useful in various scenarios, the specific problem of GStreamer plugins now also fits nicely into the concept of the hook configuration options, so I think it makes sense to solve it as such.

Comment thread PyInstaller/utils/hooks/__init__.py Resolved
Comment thread doc/hooks-config.rst Resolved
Comment thread doc/hooks-config.rst Resolved
Comment thread PyInstaller/utils/hooks/__init__.py Resolved
@rokm
rokm force-pushed the hookconfig-gst-plugins branch from 861979d to a09c9b1 Compare August 23, 2022 11:24
rokm added 2 commits August 23, 2022 13:27
Add new generic file filtering decision function, based on the
source filename and optional inclusion and exclusion pattern
list.
Implement new `gstreamer` hook configuration group with
`include_plugins` and `exclude_plugins` options that enable control
over GStreamer plugins collected by the `gi.repository.Gst` hook.
@rokm
rokm force-pushed the hookconfig-gst-plugins branch from a09c9b1 to 599465a Compare August 23, 2022 11:27
@rokm
rokm merged commit 1d2b79c into pyinstaller:develop Aug 23, 2022
@rokm
rokm deleted the hookconfig-gst-plugins branch August 23, 2022 19:57
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants