Commit 07a40b3a authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/pip_opts' into 'master'

fix: change _pip to pass cmd then PIP_OPTS

Closes #104

See merge request to-be-continuous/python!142
parents c8185952 c1b277e3
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
  }