bootstrap: prompt to install in editable mode when run interactively inside git checkout (default yes)
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled
This commit is contained in:
@@ -258,7 +258,18 @@ if [[ ! -x "$VENV_PY" ]]; then
|
||||
exit 3
|
||||
fi
|
||||
|
||||
if [[ "$NOINSTALL" != "true" ]]; then
|
||||
if [[ "$NOINSTALL" != "true" ]]; then # If not explicitly requested, suggest editable install for development checkouts
|
||||
if [[ "$EDITABLE" != "true" ]]; then
|
||||
if [[ -d "$REPO/.git" ]] || git -C "$REPO" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
|
||||
if [[ "$QUIET" != "true" && -t 0 ]]; then
|
||||
read -p "It looks like this is a development checkout (git repo). Install project in editable mode for development? (Y/n) " devans
|
||||
if [[ -z "$devans" || "$devans" == "y" || "$devans" == "Y" ]]; then
|
||||
EDITABLE=true
|
||||
echo "Selected: editable install for development"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo "Upgrading pip, setuptools, wheel..."
|
||||
"$VENV_PY" -m pip install -U pip setuptools wheel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user