Include PyInstaller Hooks with PyGObject
PyInstaller includes a "hook" for adapting it to the special needs and methods of PyGObject. This works quite well, however if Gtk or PyGObject changes, for example with the recent changes to include HarfBuzz as a typelib, it might take some time until PyInstaller catches up.
PyInstaller 4.0 now supports providing hooks with packages directly. We could include hooks directly with PyGObject for including libraries and files as needed.
The negatives of this approach of course is that it is an extra load on this project, but I would be willing to help keep PyInstaller working with PyGObject. I think having a Python packaging option that is kept current with the latest release would be a really great improvement for the community.
The instructions for how to do this are in the documentation in the provide hooks with packages area. I would appreciate any discussion if we think this would be a good way to go. If everyone likes this idea, I could create a PR to add the entry points.