python: deprecate pythonForBuild in favor of pythonOnBuildForHost

This commit is contained in:
Adam Joseph 2023-11-05 17:39:01 -08:00 committed by Artturin
parent bc2d598878
commit f0011fd103

View File

@ -91,9 +91,10 @@ in rec {
pythonAtLeast = lib.versionAtLeast pythonVersion;
pythonOlder = lib.versionOlder pythonVersion;
inherit hasDistutilsCxxPatch;
# TODO: deprecate
# Not done immediately because its likely used outside Nixpkgs.
pythonForBuild = pythonOnBuildForHost_overridden;
# Remove after 24.11 is released.
pythonForBuild =
lib.warnIf (lib.isInOldestRelease 2311) "`pythonForBuild` (from `python*`) has been renamed to `pythonOnBuildForHost`"
pythonOnBuildForHost_overridden;
pythonOnBuildForHost = pythonOnBuildForHost_overridden;
tests = callPackage ./tests.nix {