-
Notifications
You must be signed in to change notification settings - Fork 19
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
Package mdio-tool #295
Comments
I was also thinking regarding this topic: Although |
In #298 I suggest to copy the code for |
Creating a Debian package for linien-server is harder then I thought, and it will require too much maintenance in the future so I'm dropping this idea.. The reason is that I'm investigating whether it'll be possible to cross compile linien with Nix and bundle it as a debian package. This will also enable putting However, cross compiling is not always working.. I think I'm close to cross compile scipy (issues listed upstream) but I'm waiting in the meantime for mesonbuild/meson-python#122 . If that Nix based cross compilation will not work, I will revert to classic |
I'll note here, that I'm currently waiting for NixOS/nixpkgs#214549 regarding the implementation of the With some patches to scipy and to it's nix-build expression, I managed to cross compile it but I haven't tested it at all on a real armv7h machine. The progress in linien-org/pyrp3#6 surely helps! |
Hello again @bleykauf . I managed to make a notable progress using Nix' and Nixpkgs' 1st class cross compilation support 🎉. In my
Run
You can also build and run
Note that all of the above commands build a fork of scipy that include Nix flakes support and other cross compilation fixes (see my comment there), so the build may take time. Anyway, I installed |
Happy that your nix project is working now :) As for using this in Linien, I am not convinced that this will make things easier. RedPitaya OS 2.0 beta with Python 3.10 is now available (still some issues #322 but can be resolved for sure). The installation process is completely automatic from the user perspective and is pretty simple after all: install Using this for in the main project would not change anything for the user (installation is automatic, just running different commands) but adds overhead regarding maintenance. This could however be useful in regards to the GUI on Linux, since the current Github Action workflow using pyinstaller is not working, see #263. |
I think that the I also think that installing such an application via pip3 is a recipe for deployment and updating issues. Not only because a systemd service is not included but mostly because linien is actively developed and bugs are discovered and fixed frequently, hence scientists must have a good track over the linien versions they install on their red pitayas. As for mdio-tool, I just managed (in this commit) to compile with Nix
I'm afraid Nix is not useful for that - it's not sophisticated enough yet to generate a static single executables for python packages (including all dependencies). Haven't played with
It's OK, we don't have to agree on that now. I'm using Nix for a long time and I can testify it's benefits overcome the maintenance. It takes time for people to appreciate the benefits, the keywords of the benefits are clean and expected deployments. |
This can be closed now since version 2.0 |
As suggested by @doronbehar in #277 (comment).
The text was updated successfully, but these errors were encountered: