This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Sort entries in foo.dist-info/RECORD
Type: enhancement Stage: resolved
Components: Distutils Versions:
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Dawei Wang, dgreiman, dstufft, eric.araujo
Priority: normal Keywords:

Created on 2017-02-02 01:18 by dgreiman, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg286729 - (view) Author: Douglas Greiman (dgreiman) * Date: 2017-02-02 01:18
Feature Request: It would make reproducible builds easier if the [package].dist-info/RECORD files were sorted in some deterministic way.  For example, building a Docker image twice and comparing the results.

The current ordering seems to be arbitrary, and I didn't find any PEPs that specify one way or the other.

I'm not sure what would need to be updated for this change.  The whole pip/distutils/setuptools ecosystem is a bit murky.
msg313289 - (view) Author: Dawei Wang (Dawei Wang) Date: 2018-03-05 21:50
This is important since for aws lambda the package can change every time.
msg313290 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2018-03-05 21:52
Hello!  distutils does not write dist-info directories itself; wheel, setuptools and other build tools do that.  Look at https://github.com/pypa to find the bug trackers (I forget if wheel is there or on bitbucket)
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73603
2018-03-05 21:52:45eric.araujosetstatus: open -> closed
resolution: third party
messages: + msg313290

stage: resolved
2018-03-05 21:50:16Dawei Wangsetnosy: + Dawei Wang
messages: + msg313289
2017-02-02 01:18:06dgreimancreate