mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
fix(meta/python/detect): probe /opt writability, not /opt/venvs existence
Virgin pkgmgr containers ship without /opt/venvs, so the prior
'-d /opt/venvs && -w /opt/venvs' check fell through to ${HOME}/.venvs,
breaking the test-install-{make,pkgmgr} workflows that hardcode
'source /opt/venvs/infinito/bin/activate'. Probe the parent instead —
venv.sh mkdir -p's the leaf later.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
9d94f18129
commit
165fb9cc89
1 file changed
+1
-1
@@ -8,7 +8,7 @@ VENV_NAME=infinito
|
||||
|
||||
if [[ -n "${VIRTUAL_ENV:-}" ]]; then
|
||||
VENV_BASE="$(dirname "${VIRTUAL_ENV}")"
|
||||
elif [[ -d /opt/venvs && -w /opt/venvs ]]; then
|
||||
elif [[ -d /opt && -w /opt ]]; then
|
||||
VENV_BASE=/opt/venvs
|
||||
else
|
||||
VENV_BASE="${HOME}/.venvs"
|
||||
|
||||
Reference in new issue
Block a user