Skip to content

[codex] Fix torch resolution on macOS x86_64#150

Open
anth-volk wants to merge 1 commit into
mainfrom
codex/fix-145-torch-macos-x86
Open

[codex] Fix torch resolution on macOS x86_64#150
anth-volk wants to merge 1 commit into
mainfrom
codex/fix-145-torch-macos-x86

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

Fixes #145

Summary

  • Adds a uv required environment for macOS x86_64 so lock resolution covers the platform that failed the smoke setup.
  • Overrides transitive torch requirements off that platform because torch==2.11.0 does not publish macOS x86_64 wheels.
  • Adds a metadata regression test so the uv platform contract stays explicit.

Root Cause

uv sync --extra policyengine resolved torch==2.11.0, but that release only has macOS wheels for arm64. The project lock did not require uv to satisfy macOS x86_64, so the incompatibility surfaced only during install on Intel macOS.

Validation

  • uv lock --check
  • uv run pytest tests/test_project_metadata.py -q
  • uv run ruff check tests/test_project_metadata.py
  • uv sync --extra policyengine on macOS x86_64, repeated after the fix
  • uv run python -c "import importlib.util; print(importlib.util.find_spec('torch'))" returned None on macOS x86_64, confirming torch is not installed on the unsupported platform

Notes

The GitNexus MCP tools referenced in AGENTS.md were not available in this session. I did not use the npm-distributed GitNexus CLI after user clarification; staged scope was validated with git diff/status and focused tests.

@anth-volk anth-volk marked this pull request as ready for review June 1, 2026 20:46
@anth-volk anth-volk requested a review from MaxGhenis June 1, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv sync --extra policyengine resolves torch wheel unavailable on macOS x86_64

1 participant