mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 21:27:14 +01:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWYcmik6APnHfc9gEVy
13 lines
440 B
Bash
Executable File
13 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
# Editable user install so /usr/bin/python3 (the guards' user units) can
|
|
# `import focus_project`. Stdlib only; 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" -c 'import focus_project; print(focus_project.__file__)'
|