hook-lightgbm.py 937 B

123456789101112131415161718192021222324252627
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2020 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. #
  13. # A fast, distributed, high performance gradient boosting
  14. # (GBT, GBDT, GBRT, GBM or MART) framework based on decision
  15. # tree algorithms, used for ranking, classification and
  16. # many other machine learning tasks.
  17. #
  18. # https://github.com/microsoft/LightGBM
  19. #
  20. # Tested with:
  21. # Tested on Windows 10 & macOS 10.14 with Python 3.7.5
  22. from PyInstaller.utils.hooks import collect_dynamic_libs
  23. binaries = collect_dynamic_libs('lightgbm')
  24. binaries += collect_dynamic_libs('sklearn')
  25. binaries += collect_dynamic_libs('scipy')