Skip to content

install openrazer-daemon script directly via setuptools#681

Closed
roelvandijk wants to merge 1 commit intoopenrazer:masterfrom
roelvandijk:feat-daemon-setuptools-scripts
Closed

install openrazer-daemon script directly via setuptools#681
roelvandijk wants to merge 1 commit intoopenrazer:masterfrom
roelvandijk:feat-daemon-setuptools-scripts

Conversation

@roelvandijk
Copy link
Copy Markdown
Contributor

Instead of copying run_openrazer_daemon.py to $DESTDIR we can use
setuptools to install scripts. This leaves the problem of the rename
from run_openrazer_daemon.py to openrazer-daemon, which is solved with
a Makefile target.

Instead of copying run_openrazer_daemon.py to $DESTDIR we can use
setuptools to install scripts. This leaves the problem of the rename
from run_openrazer_daemon.py to openrazer-daemon, which is solved with
a Makefile target.
@z3ntu
Copy link
Copy Markdown
Member

z3ntu commented Sep 20, 2018

What's the advantage of doing this?

@roelvandijk
Copy link
Copy Markdown
Contributor Author

The advantage is that is makes it a bit easier to package the openrazer-daemon. The packaging system only needs to use setuptools in order to install both the openrazer-daemon package and the runner script. Also makes it easier to automatically wrap the installed scripts for installation in a system-specific manner, such as replacing the #!/usr/bin/python3 shebang with something else.

See also my attempt to package OpenRazer with Nix.

Still, it's just a minor difference in convenience.

@z3ntu
Copy link
Copy Markdown
Member

z3ntu commented Sep 21, 2018

Also FYI @lezed1 was also working on nixos packaging, see lezed1/nixpkgs@9b9cdf6

@z3ntu
Copy link
Copy Markdown
Member

z3ntu commented Sep 21, 2018

Sorry, I really don't see an advantage except that it's complicating the makefile even more. If you just use the Makefile targets, everything you need will be installed.

@roelvandijk
Copy link
Copy Markdown
Contributor Author

No problem. Thank you for reviewing!

@lezed1
Copy link
Copy Markdown
Contributor

lezed1 commented Sep 21, 2018

@roelvandijk I currently use Openrazer under NixOS to control all my razer devices. A few things still need to be tweaked (like getting udev to rebind devices) before I was going to PR into the main nixpkgs. Let me know if you want any help using my package set.

@roelvandijk
Copy link
Copy Markdown
Contributor Author

@lezed1 Interesting! We can continue this conversation in NixOS/nixpkgs#47009 if you want.

@evanjs evanjs mentioned this pull request Jul 21, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants