Unverified Commit 1c44ccf3 authored by Noah Fontes's avatar Noah Fontes
Browse files

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
6c85fff3, as identified in other issues)
or construction of the PYTHONPATH in this package
aacf05da removed it.
parent ad7efee1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 = ''