diff --git a/news/34.new.rst b/news/34.new.rst new file mode 100644 index 000000000..fdb78f2f4 --- /dev/null +++ b/news/34.new.rst @@ -0,0 +1 @@ +Add hook for ``pysnmp_mibs`` which contains hidden data imports. diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pysnmp_mibs.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pysnmp_mibs.py new file mode 100644 index 000000000..f4d4bff20 --- /dev/null +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pysnmp_mibs.py @@ -0,0 +1,18 @@ +# ------------------------------------------------------------------ +# 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 +# ------------------------------------------------------------------ + +# pysnmp_mibs provides MIBS files for pysnmp. It contains MIB files +# '.py' files which are treated as data files and are loaded by [what are they loaded by?] + +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('pysnmp_mibs', include_py_files=True)