src/_syspip3.ps1

#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest


# A way to use pip without requiring a virtualenv.
function _syspip3() {
    if (-not $Env:PIP3) {
        throw "`$Env:PIP3 is not set."
    }
    xwith @{PIP_REQUIRE_VIRTUALENV=""} {
        & $Env:PIP3 @args
    } @args
}