Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hooks: update sklearn.tree hook for compatibility with scikit-learn v1.6.0 #838

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion _pyinstaller_hooks_contrib/stdhooks/hook-sklearn.tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

hiddenimports = ['sklearn.tree._utils', ]
from PyInstaller.utils.hooks import is_module_satisfies

hiddenimports = ['sklearn.tree._utils']

if is_module_satisfies('scikit-learn >= 1.6.0'):
hiddenimports += ['sklearn.tree._partitioner']
2 changes: 2 additions & 0 deletions news/838.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update ``sklearn.tree`` hook for compatibility with ``scikit-learn`` v1.6.0
(add ``sklearn.tree._partitioner`` to hidden imports).
2 changes: 1 addition & 1 deletion requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ spiceypy==6.0.0
exchangelib==5.5.0; python_version >= '3.9'
NBT==1.5.1
minecraft-launcher-lib==6.5
scikit-learn==1.5.2; python_version >= '3.9'
scikit-learn==1.6.0; python_version >= '3.9'
scikit-image==0.24.0; python_version >= '3.10'
customtkinter==5.2.2
fastparquet==2024.11.0; python_version >= '3.9'
Expand Down
Loading