mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 21:14:52 +00:00
python: deprecate pythonForBuild in favor of pythonOnBuildForHost
This commit is contained in:
parent
bc2d598878
commit
f0011fd103
@ -91,9 +91,10 @@ in rec {
|
|||||||
pythonAtLeast = lib.versionAtLeast pythonVersion;
|
pythonAtLeast = lib.versionAtLeast pythonVersion;
|
||||||
pythonOlder = lib.versionOlder pythonVersion;
|
pythonOlder = lib.versionOlder pythonVersion;
|
||||||
inherit hasDistutilsCxxPatch;
|
inherit hasDistutilsCxxPatch;
|
||||||
# TODO: deprecate
|
# Remove after 24.11 is released.
|
||||||
# Not done immediately because its likely used outside Nixpkgs.
|
pythonForBuild =
|
||||||
pythonForBuild = pythonOnBuildForHost_overridden;
|
lib.warnIf (lib.isInOldestRelease 2311) "`pythonForBuild` (from `python*`) has been renamed to `pythonOnBuildForHost`"
|
||||||
|
pythonOnBuildForHost_overridden;
|
||||||
pythonOnBuildForHost = pythonOnBuildForHost_overridden;
|
pythonOnBuildForHost = pythonOnBuildForHost_overridden;
|
||||||
|
|
||||||
tests = callPackage ./tests.nix {
|
tests = callPackage ./tests.nix {
|
||||||
|
Loading…
Reference in New Issue
Block a user