src/installer/utils.py: sort entries before writing out RECORD file
This helps build reproducibility by ensuring the RECORD file is the same regardless of the order of the input files.
Note that it is wiser to delete the RECORD file anyway since you do not want to indicate to pip that it knows how to uninstall projects it didn't install and which are tracked by a more comprehensive installation database.
(Plans for pip to respect an INSTALLER identity fell through, unfortunately.)
@eli-schwartz I like that argument. Can you point at prior art in eg gentoo as a rationale for doing it distro-wide?
(and if that's a generally accepted point of view, maybe installer should have an option to not write them for the case where we don't expect anything to remove the packages?)
Either way though, reproducible files are good.
@rossburton https://bugs.gentoo.org/927818
Note that it is wiser to delete the RECORD file anyway
This is a typo, it should be "it is wise to delete [...] anyway" -- the word "wiser" would imply that this PR should be avoided and replaced by deletion but that wasn't what I was trying to write. :)