-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
buildPythonPackage: recompile bytecode for reproducibility #90208
Conversation
@GrahamcOfBorg build python3Packages.requests |
|
maybe exclude the top level of site-packages? |
actually, figured out root cause, some packages don't ship any .py's, and in that case, it errors out |
pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh
Outdated
Show resolved
Hide resolved
pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh
Outdated
Show resolved
Hide resolved
Ah yes, pycrypto, my dummy package providing pycryptodome. Would be nice if we could finally get rid of it. |
Thanks for the feedback, it's building now. |
Oh, now we have another failure
Seems like Python 2 version does not have -j |
Due to a change in pip the unpacked wheels are no longer reproducible. We recompile the bytecode to cleanup this error. NixOS#81441
https://hydra.nixos.org/build/122153227 For now I'll pass |
Would not build otherwise. The hooks needs to be fixed. #90208 (comment)
Issue tracking regressions #90516. |
@adisbladis @DavHau you may want to pass |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/python-builds-keep-pyc-in-store-dockertools/8784/6 |
Due to a change in pip the unpacked wheels are no longer reproducible.
We recompile the bytecode to cleanup this error.
#81441
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)