From 2d2a6687d992e195cb0d9abd634f71c08b605198 Mon Sep 17 00:00:00 2001 From: Alexander Prinzhorn Date: Thu, 25 Apr 2024 19:37:26 +0200 Subject: [PATCH] Only for mitmdump --- CHANGELOG.md | 1 + release/specs/standalone.spec | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 253169312b..3487d1388e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ([#6810](https://github.com/mitmproxy/mitmproxy/pull/6810), @mhils) * Fix a bug where mitmproxy would not exit when `-n` is passed. ([#6819](https://github.com/mitmproxy/mitmproxy/pull/6819), @mhils) +* Set the `unbuffered` (stdout/stderr) flag for the `mitmdump` PyInstaller build. ## 17 April 2024: mitmproxy 10.3.0 diff --git a/release/specs/standalone.spec b/release/specs/standalone.spec index 9d43ba24fb..bcc0f3b9c4 100644 --- a/release/specs/standalone.spec +++ b/release/specs/standalone.spec @@ -7,6 +7,11 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]: if tool != "mitmproxy": excludes.append("mitmproxy.tools.console") + options = [] + if tool == "mitmdump": + # https://github.com/mitmproxy/mitmproxy/issues/6757 + options.append(("unbuffered", None, "OPTION")) + a = Analysis( [tool], excludes=excludes, @@ -19,7 +24,7 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]: a.binaries, a.zipfiles, a.datas, - [("u", None, "OPTION")], + options, name=tool, console=True, icon="icon.ico",