Creating hooks for packages #2775
-
|
I am the maintainer of
For pyinstaller I can provide a simple hook that informs the tool about all packages (see https://github.com/rapidfuzz/RapidFuzz/blob/main/src/rapidfuzz/__pyinstaller/hook-rapidfuzz.py). I did see that cx-freeze also has hooks for these things:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hooks need to be distributed with cx_Freeze. The previous maintainer had an idea of creating something more dynamic, but he left the project and I haven't had time to study something like that yet. Here is an example: https://github.com/marcelotduarte/cx_Freeze/blob/main/cx_Freeze/importshed/PyQt5/QtCore.pyi |
Beta Was this translation helpful? Give feedback.
-
|
I am now generating the files instead of using importlib. This appears to make them work as expected with cx-freeze and pyinstaller without needing any lists for hidden imports. |
Beta Was this translation helpful? Give feedback.
I am now generating the files instead of using importlib. This appears to make them work as expected with cx-freeze and pyinstaller without needing any lists for hidden imports.