Skip to content
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

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

Merged
merged 5 commits into from Nov 28, 2020

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.

@FRidh FRidh force-pushed the splice branch 2 times, most recently from d5c8917 to 23dfdc0 Compare November 27, 2020 16:03
@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
pythonForBuildOnHost = pkgsBuildHost.${pythonAttr};
pythonForBuildOnTarget = pkgsBuildTarget.${pythonAttr};
pythonForHostOnHost = pkgsHostHost.${pythonAttr};
pythonForTargetOnTarget = pkgsTargetTarget.${pythonAttr} or {};
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants