Repository navigation
Use pixi for dev and docs dependency management - #2197
Open
brynpickering wants to merge 1 commit into
Open
brynpickering wants to merge 1 commit into
brynpickering wants to merge 1 commit into
Conversation
lkstrp
requested changes
Nov 24, 2026
lkstrp
left a comment
Member
There was a problem hiding this comment.
I am quite against this. The overhead is not marginal. And in the evolving world leading to worktrees and sandboxes its a problem for nearly no benefit. See stats below.
Next to that, the CI is here no longer testing the built wheel. Also the master is not testing fresh dependencies anymore. With pixi.toml we have two sources of truth next to pyproject.toml...
My counter proposal is here: PyPSA/reusable-github-workflows#4
| uv | pixi | Δ | |
|---|---|---|---|
| Cold setup (empty cache) | 37.0 s | 46.6 s | +26% |
| Warm setup (per worktree) | 2.1 s | 4.2 s | 2x |
| Re-sync, nothing changed | 113 ms | 212 ms | 2x |
run overhead |
55 ms | 213 ms | 4x |
| Cache + Python | 1.5 GB | 2.0 GB | +33% |
| Per extra worktree | 6.5 MB | ~130 MB | ~20x |
| 3 worktrees total | ~1.7 GB | ~2.4 GB | +40% |
This branch has not been deployed
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.
Update to using pixi for the development environments. It adds some marginal overhead but with the benefit of access to non-python libs. I noticed on building the docs that I needed the
cairolib and had to point to a brew install to make it work.Another benefit is being able to emulate CI steps more fully locally via pixi tasks. There is a CI task in the
pixi.tomlthat is invoked in the CI but can also be run locally without having to think about all the steps involved.PyPSA itself is installed into the dev environment using
uvas an editable python dependency, alongside its pure python dependencies. It remains possible to install and run locally withuvandpipif desired (just not the dev/docs env).Checklist
docs.docs/release-notes.mdof the upcoming release is included.