Skip to content

Commit cbe038d

Browse files
committed
Fix setup.sh to install LSP deps when MATHCODE_USE_LSP=1
1 parent 8ca75dd commit cbe038d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,13 @@ ensure_autolean_venv() {
228228

229229
log "Installing bundled AUTOLEAN Python dependencies"
230230
"$AUTOLEAN_VENV/bin/python" -m pip install --upgrade pip setuptools wheel
231-
"$AUTOLEAN_VENV/bin/python" -m pip install "$AUTOLEAN_DIR"
231+
232+
local autolean_target="$AUTOLEAN_DIR"
233+
if [[ "${MATHCODE_USE_LSP:-}" == "1" ]]; then
234+
autolean_target="${AUTOLEAN_DIR}[lsp]"
235+
log "MATHCODE_USE_LSP=1 detected — installing with LSP extras"
236+
fi
237+
"$AUTOLEAN_VENV/bin/python" -m pip install "$autolean_target"
232238
}
233239

234240
ensure_lean() {

0 commit comments

Comments
 (0)