Release v0.3.5 (#160)
* Release v0.3.5 prep * fix(sidebar): bypass stale browser cache for snapshot state * test(sidebar): guard no-store snapshot fetches
This commit is contained in:
@@ -11,6 +11,18 @@ if [ "${1:-}" = "--force" ]; then
|
||||
FORCE="1"
|
||||
fi
|
||||
|
||||
PYTHON_BIN="${PYTHON:-}"
|
||||
if [ -z "$PYTHON_BIN" ]; then
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
PYTHON_BIN="python3"
|
||||
elif command -v python >/dev/null 2>&1; then
|
||||
PYTHON_BIN="python"
|
||||
else
|
||||
echo "Could not find python3 or python on PATH." >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d .venv ]; then
|
||||
if [ -z "$FORCE" ]; then
|
||||
echo ".venv already exists. Pass --force to recreate."
|
||||
@@ -21,7 +33,7 @@ if [ -d .venv ]; then
|
||||
fi
|
||||
|
||||
echo "Creating .venv ..."
|
||||
python -m venv .venv
|
||||
"$PYTHON_BIN" -m venv .venv
|
||||
|
||||
echo "Upgrading pip ..."
|
||||
.venv/bin/python -m pip install --quiet --upgrade pip
|
||||
|
||||
Reference in New Issue
Block a user