chestm007 / linux_thermaltake_riing

Python driver and daemon to control thermaltake Riing fans and pumps
GNU General Public License v2.0
59 stars 25 forks source link

Post-Install for Setuptools #28

Open henryruhs opened 5 years ago

henryruhs commented 5 years ago

Hello, I wonder if there is an simple way to automate the manual setup and found this:

https://stackoverflow.com/questions/20288711/post-install-script-with-python-setuptools

Let me know if you need an helpful hand

chestm007 commented 5 years ago

I did meddle with automating some of the install process using post_install, but the problem ended up being any config changes that were non default ended up getting blown away with every update - seemed far simpler to leave automation to distro packagers.

henryruhs commented 5 years ago

there are multiple steps to workaround this:

automated:

  1. post-install and don't care about updates
  2. test if config file is present and prompt to overwrite it or not¹

¹ not needed in the first version from my point of view

semi-automated:

  1. introduce something like linux_thermaltake_rgb init