hook-pandas.io.clipboard.py 1.1 KB

12345678910111213141516171819
  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 2024, 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. # This module conditionally imports PyQt5:
  12. # https://github.com/pandas-dev/pandas/blob/95308514e1221200e4526dfaf248283f3d7ade06/pandas/io/clipboard/__init__.py#L578-L597
  13. # Suppress this import to prevent PyQt5 from being accidentally pulled in; the actually relevant Qt bindings are
  14. # determined by our hook for `qtpy` module, which contemporary versions of pandas mandate as part of `clipboard` and
  15. # `all` extras:
  16. # https://github.com/pandas-dev/pandas/blob/95308514e1221200e4526dfaf248283f3d7ade06/pyproject.toml#L86
  17. # https://github.com/pandas-dev/pandas/blob/95308514e1221200e4526dfaf248283f3d7ade06/pyproject.toml#L115
  18. excludedimports = ['PyQt5']