diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-11-05 17:39:01 -0800 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-11-07 02:28:58 +0200 |
commit | f0011fd103af9ad262448115c1e921d0b73a6c07 (patch) | |
tree | 59091bb40756f428bbb6e3caa82ef291cb98f57f /pkgs/development/interpreters/python | |
parent | bc2d5988780f02c26daea44016df56a1dc4fb8e2 (diff) | |
download | nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar.gz nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar.bz2 nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar.lz nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar.xz nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.tar.zst nixlib-f0011fd103af9ad262448115c1e921d0b73a6c07.zip |
python: deprecate pythonForBuild in favor of pythonOnBuildForHost
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/passthrufun.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/python/passthrufun.nix b/pkgs/development/interpreters/python/passthrufun.nix index 6cb906be0a51..b06433113b6b 100644 --- a/pkgs/development/interpreters/python/passthrufun.nix +++ b/pkgs/development/interpreters/python/passthrufun.nix @@ -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 { |