hook-lightning.py 834 B

123456789101112131415161718192021
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2023 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 collect_data_files
  13. # Collect version.info (which is read during package import at run-time). Avoid collecting data from `lightning.app`,
  14. # which likely does not work with PyInstaller without additional tricks (if we need to collect that data, it should
  15. # be done in separate `lightning.app` hook).
  16. datas = collect_data_files(
  17. 'lightning',
  18. includes=['version.info'],
  19. )