mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 20:47:15 +01:00
Standalone utils subproject (pyproject, pre-commit, CI, install.sh, README with the library API). It no longer imports leetcode_guard: guard_bridge resolves the three read-only calls on demand. Q5: SQL problems skip req: and ask for an OUTPUT SHAPE (columns, rows, grouping) before code; algorithm problems keep req:. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYGW5NZL5uVpnqmNKo
15 lines
609 B
Bash
Executable File
15 lines
609 B
Bash
Executable File
#!/bin/bash
|
|
# Editable user install so /usr/bin/python3 (the tutor server, the CLI, the
|
|
# Stop hook) can `import leetcode_coach` straight from this checkout.
|
|
# leetcode-guard installs the TAGGED copy instead (its pyproject pin); run
|
|
# this only to develop the coach against live callers. Idempotent.
|
|
set -euo pipefail
|
|
|
|
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
readonly REPO_DIR
|
|
readonly SYSTEM_PYTHON="/usr/bin/python3"
|
|
|
|
"$SYSTEM_PYTHON" -m pip install --user --no-deps --break-system-packages -e "$REPO_DIR"
|
|
cd /
|
|
"$SYSTEM_PYTHON" -P -c 'import leetcode_coach; print(leetcode_coach.__file__)'
|