Skip to content
This repository was archived by the owner on Sep 10, 2026. It is now read-only.

Fix dependency installation and make "analysis" dependencies optional for development - #129

Merged
brianhelba merged 1 commit into
masterfrom
analysis-deps
Jan 17, 2026
Merged

brianhelba merged 1 commit into
masterfrom
analysis-deps

Conversation

@brianhelba

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pyproject.toml
]

[tool.uv.extra-build-dependencies]
"box2d-py" = [{ requirement = "swig", match-runtime = true }]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that gymnasium[box2d] requires box2d-py. box2d-py does not publish a pre-built wheel, so we have to build it from an source distribution (sdist) during installation.

box2d-py actually requires swig to be present during build-time (not just run-time), but it doesn't declare swig as a build dependency. We can fix this with a uv feature.

@brianhelba
brianhelba merged commit 5c412e3 into master Jan 17, 2026
1 of 2 checks passed
@brianhelba
brianhelba deleted the analysis-deps branch January 17, 2026 21:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant