Skip to content

Commit

Permalink
Merge pull request #366 from vexelnet/reproducible-ordering
Browse files Browse the repository at this point in the history
Deterministically produce RECORD file
  • Loading branch information
takluyver committed Aug 19, 2020
2 parents 07aa893 + 05bb802 commit 9ade766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flit/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def write_dist_info(self, site_pkgs):
# newline='' because the csv module does its own newline translation
with (dist_info / 'RECORD').open('w', encoding='utf-8', newline='') as f:
cf = csv.writer(f)
for path in self.installed_files:
for path in sorted(self.installed_files, key=str):
path = pathlib.Path(path)
if path.is_symlink() or path.suffix in {'.pyc', '.pyo'}:
hash, size = '', ''
Expand Down

0 comments on commit 9ade766

Please sign in to comment.