Pyinstaller-hooks-contrib

Latest version: v2025.2

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

2025.2

-------------------

New hooks
~~~~~~~~~

* Add hook for ``distributed`` package (i.e., ``dask.distributed``) to
collect its data files and modules from ``distributed.http``. (`877
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/877>`_)
* Add hook for ``niquests``. (`888
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/888>`_)
* Add hook for ``python-dateutil`` to collect data files from the package.
(`881
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/881>`_)
* Add hook for ``tkinterdnd2`` (>= 0.4.0) that collects shared library and
.tcl files from platform-specific sub-directory under ``tkinterdnd2/tkdnd``.
(`868
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/868>`_)


Updated hooks
~~~~~~~~~~~~~

* Fix ``pyqtgraph.multiprocess`` in combination with PyInstaller >= v6.10.0.
(`886
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/886>`_)
* Fix path matching for MKL DLLs in ``torch`` hook to work with either
POSIX-style or Windows-style separators, as either can appear in the
metadata's RECORD entries. (`879
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/879>`_)
* Update ``h5py`` hook to handle Debian's ``python3-h5py`` distribution of
``h5py``. (`873
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/873>`_)
* Update ``pyproj`` hook to handle non pip/PyPI distributions' devendoring its
data directory. (`873
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/873>`_)
* Update ``rtree`` hook for compatibility with ``rtree`` 1.4.0 (renamed
shared library directory in Linux PyPI wheels). (`875
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/875>`_)
* Update ``toga`` hook for compatibility with ``toga`` v0.5.0. Due to
refactor of the main module that introduced lazy import of package's
submodules, we now need to explicitly collect the said submodules using
the ``collect_submodules`` helper. (`878
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/878>`_)
* Update hook for ``travertino`` to explicitly collect the package's metadata
in order to fix compatibility with ``travertino`` v0.5.0. (`878
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/878>`_)
* Update the ``findlibs`` run-time hook to gracefully handle ``TypeError``
when using ``findlibs`` v0.1.0 with python < 3.10. This prevents the
frozen application from crashing on the run-time hook when the main
code might never end up using/importing ``findlibs`` at all (for example,
``gribapi`` module from ``eccodes`` when binary wheel with bundled
shared libraries is used). (`865
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/865>`_)

2025.1

-------------------

New hooks
~~~~~~~~~

* Add hooks for ``pypdfium2`` and ``pypdfium2_raw``. (`860
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/860>`_)


Updated hooks
~~~~~~~~~~~~~

* Update ``numba`` hook for compatibility with ``numba`` v0.61.0. (`857
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/857>`_)
* Update ``numcodecs`` hook for compatibility with ``numcodecs`` v0.15.0.
(`858
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/858>`_)

2025.0

-------------------

New hooks
~~~~~~~~~

* Add hook for ``fsspec`` to collect the package's submodules
and ensure the protocol plugins are working. (`856
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/856>`_)
* Add hook for ``intake`` to collect its plugins (registered via the
``intake.drivers`` entry-point). (`853
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/853>`_)
* Add hook for ``ruamel.yaml`` to collect its plugins, and ensure that
plugins' ``__plug_in__`` modules are collected as source .py files
(which is necessary for their discovery). (`844
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/844>`_)
* Add hook for ``sam2`` (Segment Anything Model 2). (`847
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/847>`_)
* Add hook for ``zarr`` to collect the package's metadata. (`855
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/855>`_)


Updated hooks
~~~~~~~~~~~~~

* Revise the search for OpenSSL shared library and ``ossl-modules`` directory
in the ``cryptography`` hook, in order to mitigate issues with unrelated
copies of OpenSSL ending up being pulled into the build. Most notably,
the hook should not be searching for OpenSSL shared library when
``cryptography`` PyPI wheel is installed, because those ship with
extensions that are statically linked against OpenSSL. (`846
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/846>`_)
* Rewrite ``pygraphviz`` hook to fix discovery and collection of ``graphviz``
files under various Linux distributions, in Anaconda environments
(Windows, Linux, and macOS), and msys2 environments (Windows). (`849
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/849>`_)
* Update ``dask`` hook to collect template files from
``dask/widgets/templates``
directory; these file become mandatory when using ``dask.array`` and
``jinja2`` is available. (`852
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/852>`_)
* Update ``triton`` hook for compatibility with ``triton`` >= 3.0.0; the
hook should now collect backend-specific modules and data files from
``triton.backends``. (`848
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/848>`_)

2024.11

--------------------

New hooks
~~~~~~~~~

* Add hook for ``selectolax`` to collect its data files. (`841
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/841>`_)


Updated hooks
~~~~~~~~~~~~~

* (Linux) Update ``torch`` hook to suppress creation of symbolic links to
the top-level application directory for the shared libraries discovered
during binary dependency analysis in ``torch/lib`` directory. This fixes
issues with ``libtorch_cuda_linalg.so`` not being found in spite of it
being collected, as observed with certain ``torch`` builds provided by
https://download.pytorch.org/whl/torch (e.g., ``1.13.1+cu117``,
``2.0.1+cu117``, and ``2.1.2+cu118``). (`834
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/834>`_)
* Update ``sklearn.tree`` hook for compatibility with ``scikit-learn`` v1.6.0
(add ``sklearn.tree._partitioner`` to hidden imports). (`838
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/838>`_)

2024.10

--------------------

New hooks
~~~~~~~~~

* Add hook for ``h3`` to collect its metadata (required with ``h3`` v4.0.0
and later). (`825
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/825>`_)
* Add hook for ``numbers_parser`` to ensure that package's data file is
collected. (`823
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/823>`_)
* Add hook for ``sv_ttk`` to ensure that its resources (.tcl files and
images) are collected. (`826
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/826>`_)


Updated hooks
~~~~~~~~~~~~~

* Update ``falcon`` hook for compatibility with ``falcon`` v4.0.0. (`820
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/820>`_)
* Update ``tensorflow`` hook to automatically raise recursion limit to
5000 (if not already set to a higher value) in order to avoid recursion
limit errors in certain import chains (dependent on build environment
and other packages installed in it). (`825
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/825>`_)

2024.9

-------------------

New hooks
~~~~~~~~~

* Add a hook for comtypes to ensure compatibility with comtypes >= 1.4.5.
(`807
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/807>`_)
* Add analysis hook for ``slixmpp`` library (`784
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/784>`_)
* Add hook for ``capstone`` package. (`787
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/787>`_)
* Add hook for ``grapheme`` to collect its data files. (`793
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/793>`_)
* Add hook for ``onnxruntime`` to ensure that provider plugins are
collected. (`817
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/817>`_)
* Add hook for ``saml2`` package which has XSD files and hidden imports. (`798
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/798>`_)
* Add hook for ``setuptools_scm`` that collects metadata of ``setuptools``
dist in order to avoid run-time warning about unknown/incompatible
``setuptools`` version. (`805
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/805>`_)
* Add hook for ``ultralytics`` package. (`786
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/786>`_)
* Add hook for ``xmlschema`` package which has XSD files. (`797
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/797>`_)
* Add hook for ``yapf_third_party`` (part of ``yapf``) to collect its
data files. (`792
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/792>`_)
* Add hooks for ``toga`` widget toolkit and its backends. (`804
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/804>`_)
* Add run-time hook for ``findlibs`` that overrides the ``findlibs.find``
function with custom implementation in order to ensure that the top-level
application directory is searched first. This prevents a system-wide
copy of the library being found and loaded instead of the bundled copy
when the system-wide copy happens to be available in one of fixed
locations that is scanned by the original implementation of ``findlibs.find``
(for example, Homebrew directory on macOS). (`799
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/799>`_)


Updated hooks
~~~~~~~~~~~~~

* (Linux) Update ``tensorflow`` hook to suppress creation of symbolic links
to the top-level application directory for the following shared libraries
discovered during binary dependency analysis: ``libtensorflow_cc.so.2``,
``libtensorflow_framework.so.2``, and ``_pywrap_tensorflow_internal.so``.
This fixes run-time discovery of CUDA shared libraries from ``nvidia.cu*``
packages. This fix requires PyInstaller >= 6.11 to work, and is no-op
in earlier PyInstaller versions. (`786
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/786>`_)
* (Linux) Update hooks for ``nvidia.cu*`` packages to suppress creation of
symbolic links to the top-level application directory for all shared
libraries collected from the packages. This fixes run-time discovery
of other shared libraries from those packages, which are dynamically
loaded at run-time (as opposed to being linked against). Specifically,
this fixes the ``Unable to load any of
{libcudnn_engines_precompiled.so.9.1.0,
libcudnn_engines_precompiled.so.9.1, libcudnn_engines_precompiled.so.9,
libcudnn_engines_precompiled.so}`` and subsequent
``RuntimeError: CUDNN_BACKEND_TENSOR_DESCRIPTOR cudnnFinalize failed
cudnn_status: CUDNN_STATUS_NOT_INITIALIZED`` when trying to use
``ultralytics`` package. This fix requires PyInstaller >= 6.11 to work,
and is no-op in earlier PyInstaller versions. (`786
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/786>`_)
* Update ``av`` hook for compatibility with ``av`` v13.0.0. (`794
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/794>`_)
* Update ``av`` hook for compatibility with ``av`` v13.1.0. (`814
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/814>`_)
* Update ``gribapi`` hook for compatibility with ``eccodes`` v2.37.0,
to account for possibility of bundles ``eccodes`` shared library, which
is provided by newly-introduced binary wheels for Linux and macOS 13+. (`799
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/799>`_)
* Update ``pydicom`` hook for compatibility with ``pydicom`` v.3.0.0. (`796
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/796>`_)
* Update ``xarray`` hook to collect ``xarray.chunkmanagers`` entry-points.
(`800
<https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/800>`_)

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.