diff options
author | Noah Fontes <noah@noahfontes.com> | 2024-05-07 13:32:38 -0700 |
---|---|---|
committer | Noah Fontes <noah@noahfontes.com> | 2024-05-07 13:32:38 -0700 |
commit | 1c44ccf3a7e3de0e0b0b4bfd3fc0772addb17169 (patch) | |
tree | 600a767f0b3295d2d068f15c566dd16a279df0e8 /pkgs/tools/admin | |
parent | ad7efee13e0d216bf29992311536fce1d3eefbef (diff) |
azure-cli: fix installing extensions externally
For those of us not using the new azure-cli-extensions mechanism to manage extensions, it is not possible to install or update extensions unless pip is on the PYTHONPATH. This used to be the case by default, but a relatively recent change to either Python packaging (likely 6c85fff302615c62bf4f632bca661bc48298b0a3, as identified in other issues) or construction of the PYTHONPATH in this package aacf05daec3141ce2bb34fd7c021a86401ac8c51 removed it.
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/azure-cli/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/admin/azure-cli/default.nix b/pkgs/tools/admin/azure-cli/default.nix index c42ee7dcc971c..5b025e5c3b26e 100644 --- a/pkgs/tools/admin/azure-cli/default.nix +++ b/pkgs/tools/admin/azure-cli/default.nix @@ -229,6 +229,10 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage rec { wcwidth websocket-client xmltodict + ] ++ lib.optionals (!withImmutableConfig) [ + # pip is required to install extensions locally, but it's not needed if + # we're using the default immutable configuration. + pip ]; postInstall = '' |