Fix PEP 668 compliance for bloc installation #29

Merged
brad merged 1 commit from fix-pep668-bloc-install into main 2026-02-24 10:37:44 -08:00
Owner

Fixes CI failure from PR #28.

Problem

Debian 12 (bookworm) has PEP 668 protection that blocks system-wide pip installations with error: "The interpreter at /usr is externally managed".

Solution

Changed bloc installation to use a virtual environment at /opt/venv (recommended approach per PEP 668).

Changes

  • Create Python venv at /opt/venv
  • Install bloc inside the venv using uv pip install
  • Add /opt/venv/bin to PATH so bloc command is accessible system-wide

Testing

CI will validate the Docker build completes successfully.

Fixes CI failure from PR #28. ## Problem Debian 12 (bookworm) has PEP 668 protection that blocks system-wide pip installations with error: "The interpreter at /usr is externally managed". ## Solution Changed bloc installation to use a virtual environment at `/opt/venv` (recommended approach per PEP 668). ## Changes - Create Python venv at `/opt/venv` - Install bloc inside the venv using `uv pip install` - Add `/opt/venv/bin` to PATH so `bloc` command is accessible system-wide ## Testing CI will validate the Docker build completes successfully.
Debian 12 (bookworm) has PEP 668 protection that blocks system-wide pip installations.
Changed bloc installation to use a virtual environment at /opt/venv.

Changes:
- Create Python venv at /opt/venv
- Install bloc inside the venv
- Add /opt/venv/bin to PATH so bloc is accessible system-wide

This resolves the CI failure from PR #28 while following the recommended PEP 668 approach.
brad merged commit d08e2e5ab9 into main 2026-02-24 10:37:44 -08:00
brad deleted branch fix-pep668-bloc-install 2026-02-24 10:37:44 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
commune/sandbox!29
No description provided.