Skip to content

Comments

python: Propagate packageOverrides to pythonForBuild#105113

Merged
adisbladis merged 1 commit intoNixOS:masterfrom
adisbladis:pythonforbuild-overrides
Nov 30, 2020
Merged

python: Propagate packageOverrides to pythonForBuild#105113
adisbladis merged 1 commit intoNixOS:masterfrom
adisbladis:pythonforbuild-overrides

Conversation

@adisbladis
Copy link
Member

@adisbladis adisbladis commented Nov 27, 2020

When overriding versions of build tools injected via hooks by pythonForBuild
packageOverrides was not taken into account and 2 incompatible
versions of the same package (wheel in this case) ended up in the
closure, causing the builds to fail.

This was broken by b57c5d4.

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.

@adisbladis adisbladis requested a review from FRidh as a code owner November 27, 2020 02:53
@ofborg ofborg bot added 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 27, 2020
@FRidh FRidh self-assigned this Nov 27, 2020
@FRidh
Copy link
Member

FRidh commented Nov 27, 2020

As follow-up of #104201 I think it would be good if we get rid of passing around pythonForBuild explicitly but instead have pythonPackagesBuildHost, for uniformity. As far as I can see that would solve this issue.

FRidh added a commit to FRidh/nixpkgs that referenced this pull request Nov 28, 2020
When overriding versions of build tools injected via hooks
`packageOverrides` was not taken into account and 2 incompatible
versions of the same package (`wheel` in this case) ended up in the
closure, causing the builds to fail.
@adisbladis adisbladis force-pushed the pythonforbuild-overrides branch from dfb170f to 49b8738 Compare November 30, 2020 10:13
@adisbladis adisbladis merged commit a52850e into NixOS:master Nov 30, 2020
@FRidh
Copy link
Member

FRidh commented Nov 30, 2020

Have you tested again without this change on master?

@adisbladis
Copy link
Member Author

@FRidh Yes I have.

@FRidh
Copy link
Member

FRidh commented Nov 30, 2020

Alright. It would be nice to communicate that before merging this yourself.

.overrideScope' still led to the same issue?

@Ericson2314 seems like, while splicing is now fixed, overrides are not yet taken into account.

We'll need to make a test for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants