PYTHON-4586 Fix hatch invocation (#1750)

This commit is contained in:
Steven Silvester 2024-07-26 16:38:19 -06:00 committed by GitHub
parent cb89061627
commit af9cbda58d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ fi
if $PYTHON_BINARY -m hatch --version; then
run_hatch() {
$PYTHON_BINARY hatch run "$@"
$PYTHON_BINARY -m hatch run "$@"
}
else # No toolchain hatch present, set up virtualenv before installing hatch
createvirtualenv "$PYTHON_BINARY" hatchenv