Update PyInstaller spec to set the u (unbuffered) flag (#6821)
* Update PyInstaller spec to set the u (unbuffered) flag * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b5574fb298
commit
14d5fa0474
|
@ -11,6 +11,8 @@
|
||||||
([#6810](https://github.com/mitmproxy/mitmproxy/pull/6810), @mhils)
|
([#6810](https://github.com/mitmproxy/mitmproxy/pull/6810), @mhils)
|
||||||
* Fix a bug where mitmproxy would not exit when `-n` is passed.
|
* Fix a bug where mitmproxy would not exit when `-n` is passed.
|
||||||
([#6819](https://github.com/mitmproxy/mitmproxy/pull/6819), @mhils)
|
([#6819](https://github.com/mitmproxy/mitmproxy/pull/6819), @mhils)
|
||||||
|
* Set the `unbuffered` (stdout/stderr) flag for the `mitmdump` PyInstaller build.
|
||||||
|
([#6821](https://github.com/mitmproxy/mitmproxy/pull/6821), @Prinzhorn)
|
||||||
|
|
||||||
|
|
||||||
## 17 April 2024: mitmproxy 10.3.0
|
## 17 April 2024: mitmproxy 10.3.0
|
||||||
|
|
|
@ -7,6 +7,11 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]:
|
||||||
if tool != "mitmproxy":
|
if tool != "mitmproxy":
|
||||||
excludes.append("mitmproxy.tools.console")
|
excludes.append("mitmproxy.tools.console")
|
||||||
|
|
||||||
|
options = []
|
||||||
|
if tool == "mitmdump":
|
||||||
|
# https://github.com/mitmproxy/mitmproxy/issues/6757
|
||||||
|
options.append(("unbuffered", None, "OPTION"))
|
||||||
|
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
[tool],
|
[tool],
|
||||||
excludes=excludes,
|
excludes=excludes,
|
||||||
|
@ -19,8 +24,8 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]:
|
||||||
a.binaries,
|
a.binaries,
|
||||||
a.zipfiles,
|
a.zipfiles,
|
||||||
a.datas,
|
a.datas,
|
||||||
[],
|
options,
|
||||||
name=tool,
|
name=tool,
|
||||||
console=True,
|
console=True,
|
||||||
icon='icon.ico',
|
icon="icon.ico",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue