Commit c1b277e3 authored by Gaëtan Montury's avatar Gaëtan Montury
Browse files

fix: change _pip to pass cmd then PIP_OPTS

parent c8185952
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -747,14 +747,17 @@ variables:
  }

  function _pip() {
    cmd=$1
    shift

    if [[ "$PYTHON_BUILD_SYSTEM" =~ ^uv ]]
    then
      maybe_install_uv
      # shellcheck disable=SC2086
      uv pip ${PIP_OPTS} "$@"
      uv pip "$cmd" ${PIP_OPTS} "$@"
    else
      # shellcheck disable=SC2086
      _run pip ${PIP_OPTS} "$@"
      _run pip "$cmd" ${PIP_OPTS} "$@"
    fi
  }