Skip to content

Python: rename internal parameters related to splicing and fix splicing#105155

Merged
Ericson2314 merged 5 commits intoNixOS:masterfrom
FRidh:splice
Nov 28, 2020
Merged

Python: rename internal parameters related to splicing and fix splicing#105155
Ericson2314 merged 5 commits intoNixOS:masterfrom
FRidh:splice

Conversation

@FRidh
Copy link
Member

@FRidh FRidh commented Nov 27, 2020

Follow-up to #104201, related to #105113.

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.

@ofborg ofborg bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Nov 27, 2020
@FRidh FRidh force-pushed the splice branch 2 times, most recently from d5c8917 to 23dfdc0 Compare November 27, 2020 16:03
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Nov 27, 2020
@FRidh FRidh changed the title WIP Python: use pythonPackagesBuildHost.pkg.python instead of pythonF… WIP Python: use pythonPackagesBuildHost instead of pythonForBuild Nov 27, 2020
@FRidh FRidh changed the title WIP Python: use pythonPackagesBuildHost instead of pythonForBuild Python: use pythonPackagesBuildHost instead of pythonForBuild Nov 27, 2020
@FRidh FRidh marked this pull request as ready for review November 27, 2020 17:11
super was incorrectly possible until NixOS#104201
got merged.
@FRidh FRidh changed the title Python: use pythonPackagesBuildHost instead of pythonForBuild Python: rename internal parameters related to spliciing and fix splicing Nov 28, 2020
Copy link
Member Author

@FRidh FRidh Nov 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe have it evaluate to null for TargetOnTarget`? That would be a bit more annoying for selfTargetTarget further down.

As part of the splicing the build/host/target combinations of the interpreter
need to be passed around internally. The chosen names were not very clear,
implying they were package sets whereas actually there were derivations.
In the original commit the various builds of Python were added to
`otherSplices`, instead of the intended Python package sets.
@FRidh FRidh changed the title Python: rename internal parameters related to spliciing and fix splicing Python: rename internal parameters related to splicing and fix splicing Nov 28, 2020
FRidh pushed a commit that referenced this pull request Feb 20, 2021
This was broken by #105155.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
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: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants