diff options
Diffstat (limited to 'release/hooks')
-rw-r--r-- | release/hooks/hook-pkg_resources.py | 7 | ||||
-rw-r--r-- | release/hooks/hook-publicsuffix2.py | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/release/hooks/hook-pkg_resources.py b/release/hooks/hook-pkg_resources.py new file mode 100644 index 00000000..8bd787f2 --- /dev/null +++ b/release/hooks/hook-pkg_resources.py @@ -0,0 +1,7 @@ +# flake8: noqa + +# temporary fix for https://github.com/pypa/setuptools/issues/1963 +# can be removed when we upgrade to PyInstaller 3.7. +hiddenimports = collect_submodules('pkg_resources._vendor') +hiddenimports.append('pkg_resources.py2_warn') +excludedimports = ['__main__'] diff --git a/release/hooks/hook-publicsuffix2.py b/release/hooks/hook-publicsuffix2.py new file mode 100644 index 00000000..f16c9911 --- /dev/null +++ b/release/hooks/hook-publicsuffix2.py @@ -0,0 +1,3 @@ +from PyInstaller.utils.hooks import collect_data_files + +datas = collect_data_files('publicsuffix2') |