层1: ars_opd 改为 editable 安装,修复脚本/调试器 import 失败

- pyproject.toml: 最小打包配置(依赖仍统一走 requirements*.txt)
- .vscode/launch.json: 调试当前文件 + teacher 生成两个配置,cwd 锚定仓库根
- setup_remote.sh 与 CLAUDE.md 常用命令同步 pip install -e

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-18 08:06:40 -04:00
parent 20e6d97427
commit e72d07aced
4 changed files with 44 additions and 0 deletions
+2
View File
@@ -33,6 +33,8 @@ fi
# ---- 3. 依赖 ----
# 直接调环境内 pip:conda run 会整体缓冲子命令输出(违反"日志实时可查"规矩),弃用
"$ENV_PATH/bin/pip" install -r "$REPO_DIR/requirements.txt" -r "$REPO_DIR/requirements-remote.txt"
# ars_opd 以 editable 方式注册进环境:脚本从任意目录都能 import,不依赖 cwd
"$ENV_PATH/bin/pip" install -e "$REPO_DIR" --no-build-isolation --no-deps
# ---- 4. 环境变量持久化(写入 ~/.bashrc,幂等)----
if ! grep -q "ars-opd-rebuild env" ~/.bashrc; then