diff options
author | Maximilian Hils <git@maximilianhils.com> | 2020-02-28 17:42:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 17:42:00 +0100 |
commit | c284d595a34a16d76e18fa4e8654b4c14ea327fd (patch) | |
tree | f956991961136a556d2952073a5b64c4caaf079b /release/hooks | |
parent | cc5fa2d0efbfc8f519f87ff946d31e60e2ae7a43 (diff) | |
download | mitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.tar.gz mitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.tar.bz2 mitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.zip |
Fix binary builds (#3840)
See https://github.com/pypa/setuptools/issues/1963 for details.
Diffstat (limited to 'release/hooks')
-rw-r--r-- | release/hooks/hook-pkg_resources.py | 7 |
1 files changed, 7 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__'] |