Skip to content

buildPython*: remove pythonRecompileBytecodeHook as dependency #103089

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

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

FRidh
Copy link
Member

@FRidh FRidh commented Nov 7, 2020

This hook was added to get reproducible bytecode. Because it was causing
issues it was disabled, but still kept as a dependency. Now the main
issue with bytecode reproducibility has been resolved by updating pip to
20.2.4, we remove this hook as a dependency.

If a package with Python code is not yet reproducible, one could add
this hook to nativeBuildInputs.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@FRidh
Copy link
Member Author

FRidh commented Nov 8, 2020

Need to remove occurrences of dontUsepythonRecompileBytecode.

@FRidh FRidh requested a review from jonringer as a code owner November 8, 2020 10:47
@ofborg ofborg bot added the 8.has: documentation This PR adds or changes documentation label Nov 8, 2020
@jonringer
Copy link
Contributor

otherwise LGTM

This hook was added to get reproducible bytecode. Because it was causing
issues it was disabled, but still kept as a dependency. Now the main
issue with bytecode reproducibility has been resolved by updating pip to
20.2.4, we remove this hook as a dependency.

If a package with Python code is not yet reproducible, one could add
this hook to `nativeBuildInputs`.
@FRidh FRidh merged commit 3fceafc into NixOS:staging Nov 12, 2020
@FRidh FRidh mentioned this pull request Nov 15, 2020
29 tasks
@FRidh FRidh deleted the bytecode branch November 15, 2020 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants