From 4f09e71d90238d6d4f5bfd95fde3191fb2d9bda4 Mon Sep 17 00:00:00 2001 From: Steelsmasher <18646376+Steelsmasher@users.noreply.github.com> Date: Sun, 1 Nov 2020 06:32:03 +0000 Subject: [PATCH] Add hook for ijson (#64) --- news/64.new.rst | 1 + .../hooks/stdhooks/hook-ijson.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 news/64.new.rst create mode 100644 src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-ijson.py diff --git a/news/64.new.rst b/news/64.new.rst new file mode 100644 index 000000000..5147dcb52 --- /dev/null +++ b/news/64.new.rst @@ -0,0 +1 @@ +Add hook for ijson which has dynamically loaded backends. \ No newline at end of file diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-ijson.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-ijson.py new file mode 100644 index 000000000..b5844e4dc --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-ijson.py @@ -0,0 +1,14 @@ +# ------------------------------------------------------------------ +# Copyright (c) 2020 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 collect_submodules +hiddenimports = collect_submodules("ijson.backends")