Skip to content

Commit

Permalink
Fixes #91: Tag metadata in WHEEL was incorrect (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored Sep 26, 2024
1 parent 4e3ebad commit 83be2ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pymsbuild/_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,11 @@ def prepare_wheel_distinfo(self):
with open(outdir / "WHEEL", "w", encoding="utf-8") as f:
print("Wheel-Version: 1.0", file=f)
print("Generator: pymsbuild", __version__, file=f)
print("Root-Is-Purelib: false", file=f)
for t in sorted(self.wheel_tag):
print("Tag:", t, file=f)
if self.wheel_tag:
print("Root-Is-Purelib:", str(self.wheel_tag).endswith("-none-any"), file=f)
print("Tag:", self.wheel_tag, file=f)
else:
print("Root-Is-Purelib: True", file=f)
if self.build_number:
print("Build:", self.build_number, file=f)
shutil.copy(self.pkginfo, outdir / "METADATA")
Expand Down

0 comments on commit 83be2ee

Please sign in to comment.