hook-gi.repository.GModule.py 1.1 KB

12345678910111213141516171819202122
  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 2005-2021, PyInstaller Development Team.
  3. #
  4. # Distributed under the terms of the GNU General Public License (version 2
  5. # or later) with exception for distributing the bootloader.
  6. #
  7. # The full license is in the file COPYING.txt, distributed with this software.
  8. #
  9. # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
  10. #-----------------------------------------------------------------------------
  11. """
  12. Import hook for GModule https://developer.gnome.org/glib/stable/glib-Dynamic-Loading-of-Modules.html from the GLib
  13. library https://wiki.gnome.org/Projects/GLib introspected through PyGobject https://wiki.gnome.org/PyGObject
  14. via the GObject Introspection middleware layer https://wiki.gnome.org/Projects/GObjectIntrospection
  15. Tested with GLib 2.44.1, PyGObject 3.16.2, and GObject Introspection 1.44.0 on Mac OS 10.10 and
  16. GLib 2.42.2, PyGObject 3.14.0, and GObject Introspection 1.42 on Windows 7.
  17. """
  18. from PyInstaller.utils.hooks.gi import get_gi_typelibs
  19. binaries, datas, hiddenimports = get_gi_typelibs('GModule', '2.0')