hook-sspilib.raw.py 861 B

1234567891011121314151617181920
  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_submodules
  13. # This seems to be required in python <= 3.9; in later versions, the `dataclasses` module ends up included via a
  14. # different import chain. But for the sake of consistency, keep the hiddenimport for all python versions.
  15. hiddenimports = ['dataclasses']
  16. # Collect submodules of `sspilib.raw` - most of which are cythonized extensions.
  17. hiddenimports += collect_submodules('sspilib.raw')