fdf
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
nose
2025-12-24 23:01:12 -08:00
parent 21d51d7f46
commit a2ec5ba22b
2 changed files with 35 additions and 0 deletions

View File

@@ -553,11 +553,16 @@ VENV="$REPO/.venv"
# Ensure tools installed into the venv are discoverable to subprocess-based providers
export PATH="$VENV/bin:$PATH"
# Ensure top-level repo modules (e.g. CLI.py) are importable even when 'mm' is
# invoked from outside the repo directory.
export PYTHONPATH="$REPO${PYTHONPATH+:$PYTHONPATH}"
# Debug mode: set MM_DEBUG=1 to print repository, venv, and import diagnostics
if [ -n "${MM_DEBUG:-}" ]; then
echo "MM_DEBUG: diagnostics" >&2
echo "Resolved REPO: $REPO" >&2
echo "Resolved VENV: $VENV" >&2
echo "PYTHONPATH: ${PYTHONPATH:-}" >&2
echo "VENV exists: $( [ -d "$VENV" ] && echo yes || echo no )" >&2
echo "Candidates:" >&2
echo " VENV/bin/mm: $( [ -x "$VENV/bin/mm" ] && echo yes || echo no )" >&2