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
6c85fff302, as identified in other issues)
or construction of the PYTHONPATH in this package
aacf05daec removed it.
This commit is contained in:
Noah Fontes 2024-05-07 13:32:38 -07:00
parent ad7efee13e
commit 1c44ccf3a7
No known key found for this signature in database
GPG key ID: 85B8C0A0B15FF53F

View file

@ -229,6 +229,10 @@ py.pkgs.toPythonApplication (py.pkgs.buildAzureCliPackage rec {
wcwidth wcwidth
websocket-client websocket-client
xmltodict 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 = '' postInstall = ''