Skip to content

treewide: deprecate pythonForBuild, replace with pythonOnBuildForHost#265764

Merged
Artturin merged 2 commits intomasterfrom
unknown repository
Nov 7, 2023
Merged

treewide: deprecate pythonForBuild, replace with pythonOnBuildForHost#265764
Artturin merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Nov 6, 2023

Description of changes

Deprecate confusing old name, add lib.warn.

See

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 6.topic: Enlightenment DE The Enlightenment Desktop Environment labels Nov 6, 2023
@ghost ghost requested a review from Artturin November 6, 2023 01:40
@ghost ghost changed the title python: deprecate pythonForBuild in favor of pythonOnBuildForHost treewide: deprecate pythonForBuild, replace with pythonOnBuildForHost Nov 6, 2023
@ghost ghost marked this pull request as ready for review November 6, 2023 02:06
@ghost ghost requested review from FRidh, jonringer and mweinelt as code owners November 6, 2023 02:06
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 6, 2023
@Artturin Artturin merged commit d24da52 into NixOS:master Nov 7, 2023
@ghost ghost deleted the pr/pythonForBuild branch November 7, 2023 22:58
sigprof added a commit to sigprof/poetry2nix that referenced this pull request Feb 1, 2024
The upstream Nixpkgs renamed `pythonForBuild` to `pythonOnBuildForHost`
and made `pythonForBuild` emit warnings: NixOS/nixpkgs#265764.  Adjust
the poetry2nix code to avoid warnings with the new version, while still
keeping compatibility with the old one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: Enlightenment DE The Enlightenment Desktop Environment 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any 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