Skip to content

Commit

Permalink
hooks: update numcodecs hook for compatibility with numcodecs v0.15.0
Browse files Browse the repository at this point in the history
Add a hidden import for `deprecated` module, which was added to
one of cythonized extension in `numcodecs` v0.15.0.
  • Loading branch information
rokm committed Jan 20, 2025
1 parent 06928e9 commit 5f8667b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-numcodecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import is_module_satisfies

# compat_ext is only imported from pyx files, so it is missed
hiddenimports = ['numcodecs.compat_ext']

# numcodecs v0.15.0 added an import of `deprecated` (from `Deprecated` dist) in one of its cythonized extension.
if is_module_satisfies('numcodecs >= 0.15.0'):
hiddenimports += ['deprecated']
1 change: 1 addition & 0 deletions news/858.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update ``numcodecs`` hook for compatibility with ``numcodecs`` v0.15.0.
2 changes: 1 addition & 1 deletion requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ msoffcrypto-tool==5.4.2
nest-asyncio==1.6.0
netCDF4==1.7.2; python_version >= '3.9'
numba==0.60.0; python_version >= '3.9'
numcodecs==0.14.1; python_version >= '3.11'
numcodecs==0.15.0; python_version >= '3.11'
Office365-REST-Python-Client==2.5.14
openpyxl==3.1.5
pandas==2.2.3; python_version >= '3.9'
Expand Down

0 comments on commit 5f8667b

Please sign in to comment.