This uses a feature introduced in PyInstaller 4.0 to register hooks as entry points and automatically discover them whenever a module is used.