fulgor icon indicating copy to clipboard operation
fulgor copied to clipboard

Add pixi configuration for local dev

Open luizirber opened this issue 1 year ago • 2 comments

While working on https://github.com/conda-forge/staged-recipes/pull/28343 I created a pixi configuration for local dev, submitting here as a PR.

This might help with #45 too, we use in some parts of sourmash CI and it is very convenient because it uses the same deps from local dev.

I tested this in

  • linux x86_64
  • macOS arm64
  • macOS x86_64
  • macOS x86_64 on arm64 via rosetta2, pixi does all the setup as long as you have rosetta2 installed (I did it with /usr/sbin/softwareupdate --install-rosetta --agree-to-license)
  • tried out linux aarch64 and almost fried my poor raspberry pi 4, but compilation failed for GGCAT, so ended up removing it

the github actions workflow uses this pixi configuration to do a build and run the generated binary, but I can't test it properly because I don't have permissions to run GH actions in your repo

luizirber avatar Nov 25 '24 01:11 luizirber

Still pending: how to document use of pixi? Add to README?

What I do is usually either

  • pixi shell for a shell with all deps installed and ready
  • pixi run build to generate ./build/fulgor for use
  • pixi run debug to generate a debug build in ./debug_build/fulgor

but not sure how to fit it best in README without making it confusing with current instructions

luizirber avatar Nov 26 '24 19:11 luizirber

but not sure how to fit it best in README without making it confusing with current instructions

This could fit very well inside the wiki. Do you have the documentation already prepared? You can send it to me or @jermp, or write it as a comment here, and we will add it right away.

Alessio-Campa avatar Nov 27 '24 14:11 Alessio-Campa