Skip to content

fix(dependency): [#318] remove torchvision from core dependencies - #319

Closed
ssarmin wants to merge 1 commit into
pyfenn:mainfrom
ssarmin:fix/318-remove-torchvision-core-dep
Closed

fix(dependency): [#318] remove torchvision from core dependencies#319
ssarmin wants to merge 1 commit into
pyfenn:mainfrom
ssarmin:fix/318-remove-torchvision-core-dep

Conversation

@ssarmin

@ssarmin ssarmin commented Sep 4, 2026

Copy link
Copy Markdown

Fixes #318

torchvision>=0.25.0 was listed as a hard dependency in pyproject.toml, requiring torch 2.10–2.12, which has no prebuilt wheels for Intel Mac (x86_64).

torchvision/torch are already declared in the vision and torch dependency-groups, so removing it from core dependencies doesn't remove any functionality.

Changes

  • Removed torchvision>=0.25.0 from [project.dependencies] in pyproject.toml
  • Regenerated uv.lock

Test plan

  • uv run ruff check fenn/ — passed
  • uv run ty check fenn/ — passed
  • uv run pytest tests/unit --cov --cov-branch — passed
  • Verified fenn still imports cleanly (import fenn; fenn.Fenn)
  • Verified in a clean Docker build (uv sync --group dev) that torch/torchvision
    still install correctly via the vision group

torchvision>=0.25.0 was a hard dependency, requiring torch 2.10-2.12 which has no prebuilt wheels for Intel Mac (x86_64) and broke installs for users who don't touch torch-based trainers. It's already declared in the vision/torch dependency-groups, so no functionality is lost.
@ssarmin ssarmin closed this by deleting the head repository Sep 4, 2026
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.

Bug: torchvision as a hard dependency breaks install on Intel Mac (x86_64)

1 participant