Open leopoldhub opened 4 weeks ago
The packaging/nix
already uses this: https://github.com/TamtamHero/fw-fanctrl/blob/c79c43e566d46b1767fa5af95d36f5a7049b3818/nix/packages/fw-fanctrl.nix#L24-L40
So it sounds good to me.
Hi @Svenum,
Thanks for your feedback.
Nice to see that this is already being used in some way!
What do you think about other formats, and why did you choose the setup.py
one?
I used it as it is the recommended way from nixos to package a python package. Thats the only reason.
Thanks
That's fine by me :+1:
Hi,
Currently, the installation process manually moves the Python script to
/usr/bin/fw-fanctrl
(or other configured path). This is a manual non-standard process that is only valid for single-file scripts.I think that we should use the "standard" way of doing this with a
setup.py
file descriptor and install it withpip install
instead.This would allow us to split the already large (633 lines) script file into modules, as well as allow for versioning and possible future dependencies and developement dependencies (e.g. a file formatter or tests to ensure uniformity and stability).
What do you think about this this?
This is a public poll, feel free to give your opinion and discuss this proposal even if you are not an active developer on this project 😉