← Back to Pull requests

Symlink the interpreter when creating a cross venv. #109

Merged
kattni merged 3 files (32 lines) on Oct 22, 2026 22:28 UTC
View on GitHub
kattni kattni commented on Oct 18, 2026 00:58 UTC
Author

CrossVenvConfig.create() called venv.create(venv_path, with_pip=with_pip), which defaults to symlinks=False, so the host interpreter was copied into the new venv. python-build-standalone interpreters (such as those managed by uv) link libpython via @executable_path/../lib/libpython3.X.dylib. A copied binary can't find that library, so ensurepip died with SIGABRT and xvenv failed for every target platform. Running python -m venv with the same interpreter works, because the CLI defaults to symlinks on non-Windows platforms.

This passes symlinks=(os.name != "nt") to venv.create(), matching the python -m venv default. Nothing else in xvenv relies on the interpreter being a copy.

Reproduced and verified on macOS with uv's cpython-3.11.13-macos-aarch64-none: xvenv --platform ios --arch arm64-iphonesimulator <path> aborted before this change and now creates a working cross venv (sys.platform == "ios", pip runs). Unit tests cover the symlink setting on POSIX and Windows.

PR Checklist:


<!--- Go over all the following points, and put an x in all the boxes that apply. -->
  • I will abide by the BeeWare Code of Conduct

  • I have read and have followed the [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) file

  • This PR was generated or assisted using an AI tool

  • <!-- update or delete the next line to reflect your usage -->
    Assisted-by: Claude Code (Claude Opus 5.5)

    Diff: 32 lines (+29 / -3) across 3 files Reviewer: freakboy3742 Review duration: 7050m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.32) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.32 · 32 lines diff across 3 files
    0.32
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.35 · 1 substantive comment(s)
    0.35
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    67%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.209
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    2 items
    freakboy3742 freakboy3742 approved these changes on Oct 18, 2026 01:03 UTC
    Approved Reviewer

    Nice catch! Thanks!

    Reviewers
    Assignees
    kattni kattni
    Labels
    risk: low confidence: 67.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 31.8% (LOW) · Higher = larger blast radius
    31.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 67.5% · Lower = rushed or shallow review
    67.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 10.3% · Safe to merge
    10.3%
    Repository