-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Packaging #2
Comments
Available to test the fedora package |
Unfortunately, there is none as far as I know |
Hi, Note: i'm not too experienced with it and might have misunderstood / forgotten / … something Debian packagesDebian python packages are usually a bit special since debian offers its own set of python dependencies in their repositories (usually called But if we just install pip anyway i don't really see a reason to package it as a debian package instead of just shipping it via pip. Pip also has the upside of being OS independent, which lets us avoid having to package it for each distro separately. i haven't looked at it to much, but maybe pacstall (aur for debian) would be a idea (a package script for a git python project). Pip / Pypi packagesNote: my debian installs commonly have issues no one else seems to be able to reproduce, therefore the following might be specific to my computer (but according to some google searches it seems as if others have similar issues) While trying to package it for pip i also ran into a issue: during the installation of a built package it fails with
the issue might be due to the debian package being named The error also appears when doing Also: packaging it probably requires some restructuring (official packaging tutorial) Other packaging optionsWith pip issues with dependency-version clashes aren't uncommon in my experience. It is possible for the end user to use venvs, but try to explain that to a average user. I wouldn't be surprised if fedora, void, etc will have similar issues to debian and pip. Therefore it might make sense to package it as flatpak or appimage (and maybe add a .deb wrapper around the app-image to ease installation). AppImages are larger in size since dependencies are included, but this project is pretty small and size is not as important as it used to be.
i might take a look at nix, appimages or pacstall later, but don't expect any results. if i or we get something to work i might be up for maintaining a package. |
Thanks for the effort! That would be great! |
in case someone wants to help with packaging it for nixos (NUR for now): i have a half-working package: it starts, but for some reason the pairing times out without any error: https://github.com/Jan9103/nur-packages/blob/a2ln/pkgs/a2ln/default.nix. |
The derivation you made works with v1.1.10, just make sure the firewall allows the pairing ports or is off alltogether. NixOS defaults to having the firewall on. |
i'm reading about all this packaging and wondering if flatpak is not an easier way to get this done? |
i think flatpak is a great package-manager, and im all for more install actively maintained install methods,
|
Flatpak would probably be a good addition. Unfortunately, I don't have time to implement it by myself at the moment - at least it does not have a big priority for me with there being other installation methods like pip as mentioned before. It would be great if someone else maintained it or at least created a PR adding all the necessary meta files and a functioning build - then I could also maintain it considering future updates. |
Hey @joe733, sorry for the recent inactivity. Containerizing the server would be great to provide another installation option for users. Feel free to work on it! |
We really hope for the flatpak version or the app-image. It's a bit difficult to put the server on the same debian 13. Thank you for your work! |
Is this still the case @luqmanishere? I have tried the derivation from your nix config with fw disabled to no avail: Traceback (most recent call last):
File "/nix/store/hir20ya35p2a3z0n5nglv06dyjawk280-a2ln-1.1.10/bin/..a2ln-wrapped-wrapped", line 9, in <module>
sys.exit(main())
^^^^^^
File "/nix/store/hir20ya35p2a3z0n5nglv06dyjawk280-a2ln-1.1.10/lib/python3.11/site-packages/a2ln/a2ln.py", line 67, in main
zmq.auth.create_certificates(own_keys_directory, "server")
File "/nix/store/vpgqa91mq2y6vb9ylchzcfmlpwgz2c0i-python3.11-pyzmq-25.1.2/lib/python3.11/site-packages/zmq/auth/certs.py", line 71, in create_certificates
public_key, secret_key = zmq.curve_keypair()
^^^^^^^^^^^^^^^^^^^
File "zmq/backend/cython/utils.pyx", line 60, in zmq.backend.cython.utils.curve_keypair
File "/nix/store/vpgqa91mq2y6vb9ylchzcfmlpwgz2c0i-python3.11-pyzmq-25.1.2/lib/python3.11/site-packages/zmq/error.py", line 149, in _check_rc
raise ZMQError(errno)
zmq.error.ZMQError: Operation not supported Previously I attributed the error to |
The text was updated successfully, but these errors were encountered: