New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prioritize hook discovery / overwrites #4806
Comments
|
RE your points:
Point 1 - OverwriteThe default should be that (like with python imports) the first hook we come accross is the "only" hook. If it doesn't specify runtime and search hooks, then there are "None". However, a way for the user to say "use the builtin search/runtime etc hooks" would be good. |
|
Can I implement the following:
Both of these would be just for the 4.0 release, and would need fine-tuning - or redoing - in 4.1. Slight implementation detail on the second point:This would be a messier monkeypatch style fix. I'd simply add checkers in |
I'm happy if you work on this. Feel free to ask for help Re point 2: issue a warning, at least, not just ignore it. On the messy implementation, I'll need to think about it and look at the code more closely. |
@bjones1 I'll do it in a PR. Warnings are a good idea. |
…4867) * Modulegraph: Reorder hook-dir search pattern. See #4806 * imphook: ModuleHook will now skip hooks for packages that already have a loaded hook * Hooks: Only allow one source to define runtime hooks for any one package * imphook: AdditionalFilesCache now extends dependencies instead of overwriting them * tests: update the pyimodulegraph rthooks tests for the right number of runtime hooks * tests: add tests for AdditionalFileCache and the hook-collection * Add changelog entry
…yinstaller#4867) * Modulegraph: Reorder hook-dir search pattern. See pyinstaller#4806 * imphook: ModuleHook will now skip hooks for packages that already have a loaded hook * Hooks: Only allow one source to define runtime hooks for any one package * imphook: AdditionalFilesCache now extends dependencies instead of overwriting them * tests: update the pyimodulegraph rthooks tests for the right number of runtime hooks * tests: add tests for AdditionalFileCache and the hook-collection * Add changelog entry
After implementing #4582 we need to prioritize discovered hooks. Agreed order is:
The text was updated successfully, but these errors were encountered: