hook-logilab.py 939 B

1234567891011121314151617181920212223242526
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2020 PyInstaller Development Team.
  3. #
  4. # This file is distributed under the terms of the GNU General Public
  5. # License (version 2.0 or later).
  6. #
  7. # The full license is available in LICENSE, distributed with
  8. # this software.
  9. #
  10. # SPDX-License-Identifier: GPL-2.0-or-later
  11. # ------------------------------------------------------------------
  12. #
  13. # ***************************************************
  14. # hook-logilab.py - PyInstaller hook file for logilab
  15. # ***************************************************
  16. # The following was written about logilab, version 1.1.0, based on executing
  17. # ``pip show logilab-common``.
  18. #
  19. # In logilab.common, line 33::
  20. #
  21. # __version__ = pkg_resources.get_distribution('logilab-common').version
  22. #
  23. # Therefore, we need metadata for logilab.
  24. from PyInstaller.utils.hooks import copy_metadata
  25. datas = copy_metadata('logilab-common')