From b65fa693dacbd92c0bdd2a8c3800d0827432d108 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 27 Jan 2025 01:20:58 +1100 Subject: [PATCH] Hack in a fix for wheel generation --- python/write_wheel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/write_wheel.py b/python/write_wheel.py index c2f1aa455ba..09899e29243 100644 --- a/python/write_wheel.py +++ b/python/write_wheel.py @@ -30,7 +30,10 @@ def make_message(headers, payload=None): msg[name] = value if payload: msg.set_payload(payload) - return msg + # EmailMessage wraps the license line, which results in an invalid file + out = bytes(msg) + out = out.replace(b"License v3 or\n later", b"License v3 or later") + return out def write_wheel_file(filename, contents):