Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pixi for setting up the dev environment #801

Closed
stanmart opened this issue May 29, 2024 · 2 comments · Fixed by #802
Closed

Use pixi for setting up the dev environment #801

stanmart opened this issue May 29, 2024 · 2 comments · Fixed by #802
Labels
question Further information is requested

Comments

@stanmart
Copy link
Collaborator

At the moment, the contribution guidelines suggest setting up a conda environment based on the environment.yml files in the repo. I think there is quite a lot to gain from moving to pixi in the case of glum. In particular:

  • There are various environment.yml files for different use cases. Pixi has an elegant way of handling multiple environments
  • Certain dependencies are platform specicfic, which pixi also handles nicely (see Benchmark removal of libblas dependency #787)
  • It uses lockfiles, which would help ensure that everyone (including the CI) uses the same versions of the dependencies. Especially useful for benchmarking.
  • I personally find it more ergonomic than activating environments but YMMV

What would not change:

  • Pixi still uses conda packages for dependencies
  • The build system. Pixi can not build conda packages (yet?). CI conda builds would still be based on conda.recipe/meta.yaml and conda-mambabuild, and PyPI builds on cibuildwheel.

I can make a draft PR so we get a better idea how it would look like. What do you think?

@stanmart stanmart added the question Further information is requested label May 29, 2024
@jtilly
Copy link
Member

jtilly commented May 29, 2024

I'm in favor of moving things to pixi. This is a nice repo to try things out.

It would be great if we could address the following items:

  • we need to regularly (and automatically) update the lockfiles so that we're testing against the most recent versions of our dependencies
  • we should also add a test against "oldies", i.e. the minimal dependencies that we want to support
  • it would be nice if we could get the tests against nightlies also included in the pixi setup

@stanmart stanmart mentioned this issue May 30, 2024
14 tasks
@stanmart
Copy link
Collaborator Author

Good points. Let's continue under #802

@stanmart stanmart linked a pull request Jun 2, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants