Skip to content

Commit

Permalink
Hack in a fix for wheel generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Jan 26, 2025
1 parent 7a61e52 commit b65fa69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/write_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b65fa69

Please sign in to comment.