hook-matplotlib.backends.backend_qtcairo.py 896 B

12345678910111213141516
  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 PyQt6:
  12. # https://github.com/matplotlib/matplotlib/blob/9e18a343fb58a2978a8e27df03190ed21c61c343/lib/matplotlib/backends/backend_qtcairo.py#L24-L25
  13. # Suppress this import to prevent PyQt6 from being accidentally pulled in; the actually relevant Qt bindings are
  14. # determined by our hook for `matplotlib.backends.qt_compat` module.
  15. excludedimports = ['PyQt6']