I have been struggling hard doing proper :python: #Python development on :nixos: #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 #poetry2nix flake template (the clue is preferWheels=true) it seems I can finally work properly:
@dedsyn4ps3@publicvoit I hear many people use this #distrobox thing. I really avoid containers where possible, although I like #Apptainer's simplicity. My main use case is #reproducibleResearch, for which you need to store the entire container image for every little change you make. But yeah, use cases...
Idea: bundling your cli $EDITOR (:vim: #vim :emacs: #emacs whatever) into a one-file static binary (#Apptainer#Appimage whatever) that you can take with you and will work everywhere, with all plugins and configs already set up. Alternatively as a :nixos: #nix#flake of course, though that's not so easily portable to systems where you don't have root access and the admins don't want to install #Nix
Let’s kick off our day with our #KoffeeWithKyle chat to see what’s on everyone’s agenda for today.
I just got to the office so I’ll be checking to see what all happened over the night with our Managed Services clients. Then it’s just the regular work stuff. Have a certification class today and tomorrow at 10.
After work it’s just relaxing and catching up on shows.
I already had a productive morning. I finally figured out how to let my hybrid #Apptainer container for our NASA code talk to #UKY's #HPC cluster’s InfiniBand backend. Now the code scales beautifully. Next up, getting it to run on our collaborators’ cluster at #UMN.
Running #RaspberryPi's with old 32-bit #Raspbian gets more and more painful... I thought #nix could help getting something like an up-to-date Python (I previously compiled it myself, but then after hours some _sqlite module wasn't there so screw it...), but apparently even #nix needs to build everything from scratch as the cache doesn't really contain built armv7l packages 😅 Let's see how this goes...
@vsaw The building is okay now. I even managed to build #Apptainer on my #SailfishOS phone! Problem is, you first need an up-to-date Go as you mentioned... But that should be available as pre-built binary for pretty much every platform.
Heh, I really like the principle of using :nixos: nix-shell as a shebang on non-#NixOS platforms. This script just launches #KBibTeX (the #TexLaTeX#BibTeX bibliography editor). Helpful in a synced :gitannex: #gitAnnex repo with multiple participants across different OSs.
In this case, the environment and programs (e.g. PDF viewer) installed in the OS stay accessible - a great advantage in comparison to container solutions like #Apptainer's for example.