Skip to content

Commit b0db174

Browse files
committed
builders/wheel: Ensure dist-info is written determinisically
glob() returns values in "on disk" order. To make the RECORD file deterministic and consistent between builds we need to sort the data before adding to the records list. Signed-off-by: Richard Purdie <[email protected]>
1 parent 155fa0d commit b0db174

File tree

1 file changed

+1
-1
lines changed
  • src/poetry/core/masonry/builders

1 file changed

+1
-1
lines changed

src/poetry/core/masonry/builders/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def _write_record(self, wheel: zipfile.ZipFile) -> None:
294294

295295
def _copy_dist_info(self, wheel: zipfile.ZipFile, source: Path) -> None:
296296
dist_info = Path(self.dist_info)
297-
for file in source.glob("**/*"):
297+
for file in sorted(source.glob("**/*")):
298298
if not file.is_file():
299299
continue
300300

0 commit comments

Comments
 (0)