hook-pickle.py 810 B

12345678910111213141516
  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 2015-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. # Only required when run as `__main__`
  12. excludedimports = ["argparse"]
  13. # pickle also imports `doctest`, which also is only used when run an `__main__`. Anyway, excluding it made some Qt
  14. # related tests fail terribly with "ModuleNotFoundError: No module named '__future__'" when running the executable.