Skip to content
Myr

install

This file

Path

scripts/install

20 lines · 377 bytes

Last changed by

Always use latest version of `pip`. (#2396)Tom Christiebefore adoption2ac58e0

History of this file

Take it

1#!/bin/sh -e23# Use the Python executable provided from the `-p` option, or a default.4[ "$1" = "-p" ] && PYTHON=$2 || PYTHON="python3"56REQUIREMENTS="requirements.txt"7VENV="venv"89set -x1011if [ -z "$GITHUB_ACTIONS" ]; then12    "$PYTHON" -m venv "$VENV"13    PIP="$VENV/bin/pip"14else15    PIP="pip"16fi1718"$PIP" install -U pip19"$PIP" install -r "$REQUIREMENTS"20"$PIP" install -e .