30f6f3758f
Permite distribuir graph_explorer.exe Windows sin dependencia de WSL
ni del .venv del registry. Tambien funciona en Linux como bundle
autocontenido portable.
Cambios:
1. tools/freeze_python_runtime.sh
- Linux: copia python-build-standalone (uv) ~87 MB,
elimina marker EXTERNALLY-MANAGED, instala wheels.
- Windows: descarga python-3.12.7-embed-amd64.zip oficial
(~12 MB), habilita site-packages, instala wheels via
pip install --target --platform win_amd64.
- Idempotente via runtime/.lock con SHA256 del estado.
- Lee python_runtime_deps del frontmatter de app.md.
2. jobs.cpp::cached_python_runtime() — resolver con cadena:
1. <exe_dir>/runtime/python/{python.exe|bin/python3} (embedded)
2. $FN_PYTHON (env)
3. <registry_root>/python/.venv/bin/python3 (registry_venv)
4. python3 del PATH (system)
Loggea procedencia al iniciar jobs_init.
3. POSIX run_subprocess: usa el runtime resuelto en lugar del
path hardcodeado.
4. Windows run_subprocess: ramifica por needs_wsl. Si embedded
o env, lanza Python Windows nativo via CreateProcessW
directamente (run_path tambien Windows nativo). Solo el
legacy registry_venv sigue por wsl.exe.
5. app.md: nuevos campos python_runtime: true y
python_runtime_deps: [requests, certifi, urllib3].
6. .gitignore extendido con runtime/, projects/, _vendored/,
.vendor.lock, binarios Go de enrichers.
Tests: 26/26 verde — 16 originales + 6 dispatcher fase A + 4
nuevos del resolver fase B (con/sin embed, FN_PYTHON, idempotencia
del freeze script).
Smoke E2E manual: runtime/python/bin/python3 ejecuta web_search
con cwd /tmp y registry_root pasado en ctx, sin tocar el .venv del
registry.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
757 B
Plaintext
36 lines
757 B
Plaintext
# SQLite app DB (jobs + layouts) — local de cada PC
|
|
graph_explorer.db
|
|
graph_explorer.db-shm
|
|
graph_explorer.db-wal
|
|
|
|
# Cache de documentos descargados por enrichers (issue 0027)
|
|
cache/
|
|
|
|
# Build artifacts
|
|
build/
|
|
*.exe
|
|
*.o
|
|
*.obj
|
|
|
|
# pytest / python caches
|
|
.pytest_cache/
|
|
__pycache__/
|
|
*.pyc
|
|
|
|
# Runtime Python embebido (issue 0033 fase B) — generado por
|
|
# tools/freeze_python_runtime.sh. Cada PC lo regenera.
|
|
runtime/
|
|
|
|
# Carpetas de proyectos (cada proyecto tiene su propia operations.db)
|
|
projects/
|
|
*.ini
|
|
|
|
# Vendoring de funciones Python (issue 0033b) — generado por
|
|
# tools/vendor_enricher_python.sh.
|
|
enrichers/*/_vendored/
|
|
enrichers/*/.vendor.lock
|
|
|
|
# Binarios de enrichers Go (issue 0034) — generados por su build.sh.
|
|
enrichers/*/run
|
|
enrichers/*/run.exe
|