python/hooks: restore catchConflictHook for python<3.10#267669
Merged
mweinelt merged 2 commits intoNixOS:masterfrom Nov 18, 2023
Merged
python/hooks: restore catchConflictHook for python<3.10#267669mweinelt merged 2 commits intoNixOS:masterfrom
mweinelt merged 2 commits intoNixOS:masterfrom
Conversation
13 tasks
Member
Author
|
@ofborg eval |
natsukium
approved these changes
Nov 16, 2023
Member
natsukium
left a comment
There was a problem hiding this comment.
I confirmed that python2 itself and some python2-modules can be built.
Member
|
The rebuild seems way too big for |
SuperSandro2000
approved these changes
Nov 16, 2023
Member
SuperSandro2000
left a comment
There was a problem hiding this comment.
fine for me to go the easy way for python2
Member
Author
I'm fine with leaving python2 broken in this cycle. |
13 tasks
5cc5dee to
82d5b90
Compare
Member
Author
|
Rebased and extended the scope for the old hook to include everything up to and including 3.9. This is because the importlib.metadata module in that version is lacking. |
By restoring and diverting to the old version. Previously the newer language features and use of more modern stdlib imports broke the hook on Python<3.10.
94eedee to
f292ef4
Compare
This reverts commit 397a8fd. The hook now uses the old implementation based on the deprecated pkg_resources library provided by setuptools again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By restoring and diverting to the old version.
Previously the newer language features and use of more modern stdlib imports broke the hook on Python<3.10.
Fixes https://hydra.nixos.org/build/240532695/nixlog/2
cc #263535
Description of changes
Things done
resholve)nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)