nobodyinperson, to python
@nobodyinperson@fosstodon.org avatar

I have been struggling hard doing proper :python: development on :nixos: .

pip install'ed binary packages (numpy et. al) don't work (i.e. don't find system libraries like libz libstdc++ etc.), making scientific data analysis completely impossible. The workarounds (using the nixpkgs versions or setting LD_LIBRARY_PATH) are not viable.

With this flake template (the clue is preferWheels=true) it seems I can finally work properly:

https://gitlab.com/nobodyinperson/flakes/-/tree/main/poetry2nix

publicvoit, to NixOS
@publicvoit@graz.social avatar

I Started With , , and https://www.karl-voit.at/2023/09/12/nix/ ❄️

My whole story about changing my distro from to NixOS and what I've learned so far.

If you would like to learn what Nix is and find out if this is something for you, you might be interested in my article.

nobodyinperson,
@nobodyinperson@fosstodon.org avatar

@publicvoit After giving another try, my conclusion is that it's quite messy. I still couldn't get it to work. You need to manually tell it the build systems and it relies on many (all?) packages being packaged in . The 'whey' package isn't - so dead end. (because that's part of the build system?).

This is how far I came:

https://gitlab.com/tue-umphy/software/parmesan/-/blob/poetry2nix/shell.nix?ref_type=heads

Should be possible to package this whey thing right in that shell.nix but I'm ignorant as to how (https://nixos.wiki/wiki/Packaging/Python). 🤷

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • DreamBathrooms
  • tester
  • InstantRegret
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • provamag3
  • megavids
  • lostlight
  • All magazines