aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2020-02-28 17:42:00 +0100
committerGitHub <noreply@github.com>2020-02-28 17:42:00 +0100
commitc284d595a34a16d76e18fa4e8654b4c14ea327fd (patch)
treef956991961136a556d2952073a5b64c4caaf079b
parentcc5fa2d0efbfc8f519f87ff946d31e60e2ae7a43 (diff)
downloadmitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.tar.gz
mitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.tar.bz2
mitmproxy-c284d595a34a16d76e18fa4e8654b4c14ea327fd.zip
Fix binary builds (#3840)
See https://github.com/pypa/setuptools/issues/1963 for details.
-rw-r--r--release/hooks/hook-pkg_resources.py7
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__']
='n123' href='#n123'>123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229