diff --git a/news/113.update.rst b/news/113.update.rst new file mode 100644 index 000000000..a9f56cda7 --- /dev/null +++ b/news/113.update.rst @@ -0,0 +1 @@ +Update the hook for ``pycountry`` to copy metadata, in addition to collecting data files. diff --git a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pycountry.py b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pycountry.py index e45f6a706..19be45205 100644 --- a/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pycountry.py +++ b/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pycountry.py @@ -10,9 +10,9 @@ # SPDX-License-Identifier: GPL-2.0-or-later # ------------------------------------------------------------------ -from PyInstaller.utils.hooks import collect_data_files +from PyInstaller.utils.hooks import collect_data_files, copy_metadata # pycountry requires the ISO databases for country data. # Tested v1.15 on Linux/Ubuntu. # https://pypi.python.org/pypi/pycountry -datas = collect_data_files('pycountry') +datas = copy_metadata('pycountry') + collect_data_files('pycountry')