hook-gcloud.py 792 B

123456789101112131415161718192021
  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. from PyInstaller.utils.hooks import copy_metadata
  13. # This hook was written for `gcloud` - https://pypi.org/project/gcloud
  14. # Suppress package-not-found errors when the hook is triggered by `gcloud` namespace package from `gcloud-aio-*` and
  15. # `gcloud-rest-*` dists (https://github.com/talkiq/gcloud-aio).
  16. try:
  17. datas = copy_metadata('gcloud')
  18. except Exception:
  19. pass