hook-gi.repository.GObject.py 1.1 KB

123456789101112131415161718192021222324
  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 GObject https://developer.gnome.org/gobject/stable/ 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 X 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('GObject', '2.0')
  20. hiddenimports += ['gi._gobject']