Repository navigation
Generate conda env files from pixi and bump pytensor and pytensor-ml - #78
Merged
Merged
Conversation
bwengals
reviewed
Nov 11, 2026
bwengals
left a comment
Collaborator
There was a problem hiding this comment.
Two small things:
- A couple of places still say to keep the env files in sync by hand:
AGENTS.md("Keep all three in sync with the pixi manifest.") anddocs/source/dev/docs.rst("keep that env file's pins in sync with the pixidocsfeature"). - CI pins pixi to v0.81.0, but nothing pins it locally. If a different pixi version formats the export differently, the hook could pass locally and fail in CI, or the reverse. Would
requires-pixiin[tool.pixi.workspace]be worth adding, or is the export format stable enough that it doesn't matter?
Member
Author
|
i think it's a good idea to pin pixi version regardless, i'll do it. |
Member
Author
|
donr |
bwengals
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
scripts/export_conda_envs.py, a script that writesconda_envs/environment.yaml,environment-test.yaml, andenvironment-docs.yamlfrom the pixidefault,test, anddocsenvironments. The newpixi-export-envspre-commit hook runs it, andpixi-lock-checkfails whenpixi.lockis out of sync withpyproject.toml.The script edits pixi's export before writing it. Only the dev file keeps the editable install, rewritten to
-e ..because conda runs pip from the env file's directory. Pip lines for packages the conda section already lists are dropped, sopip install -Ucan't replace a conda-forge build with a wheel.pytensor is now pinned to
>=3.3.8,<3.4and pytensor-ml to>=0.4.0,<0.5.0.📚 Documentation preview 📚: https://ptgp--78.org.readthedocs.build/en/78/