Skip to content

Commit

Permalink
hooks: update scikit-learn hooks for compatibility with 0.24.x series
Browse files Browse the repository at this point in the history
  • Loading branch information
rokm authored and bwoodsend committed Apr 9, 2021
1 parent 455ae4c commit 1649c5e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/108.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update ``scikit-learn`` hooks for compatibility with 0.24.x series.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ------------------------------------------------------------------
# Copyright (c) 2021 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import is_module_satisfies

# sklearn.linear_model in scikit-learn 0.24.x has a hidden import of
# sklearn.utils._weight_vector
if is_module_satisfies("sklearn >= 0.24"):
hiddenimports = ['sklearn.utils._weight_vector', ]

0 comments on commit 1649c5e

Please sign in to comment.