Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make wheel build reproducible #43

Conversation

ian-h-chamberlain
Copy link
Contributor

When building wheels for packages, pip/bdist_wheel may not generate the exact same binary output for C extensions for a few different reasons:

  • current timestamp is used in the build, can be overridden via SOURCE_DATE_EPOCH environment variable
  • -g is used which adds a tmp directory file path to the debuginfo of the binary, can be overridden with CFLAGS environment variable
  • Python hashing with a random seed, can be overridden by PYTHONHASHSEED environment variable

See bazelbuild/rules_python#154 for more details

@ian-h-chamberlain
Copy link
Contributor Author

This has been open a pretty long time for no real reason... I'm gonna go ahead and close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants