This provides the update manager flexibility, such as the ability to define disto specific dependencies. This also fixes an issue where two updates are necessary to install additional dependencies.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This allows for the installation of python "dist-packages" without enabling "system-site-packages" in the virtualenv. As of the moment moonraker only requires the gpiod dist package.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This can create issues of the system includes conflicting packages. Create a symlink for the system "gpiod" instead.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Run the legacy install cleanup after Klipper is detected in install-moonraker.sh
Fix whitespace errros in uninstall-moonraker.sh
Signed-ff-by: Eric Callahan <arksine.code@gmail.com>
Moonraker's update_manager plugin will check this file to see if dependencies or the python enviroment need an update.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Add python3-libgpiod dependency.
As this dependency requiress a rebuild of the python3 environment, add some command line options to the install script:
- "-r" will rebuild the virtualenv
- "-f" will force overwite the defaults file. By default an existing defaults file will not be modified.
- "-c <config_path>" will direct moonraker to use the supplied path for the config file.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Determine the byte location of the first and last gcode command (Either Mxxx or Gxxx commands). This is useful for determining the portion of the file that consists of actual commands.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
If Klipper is installed as systemd service, the script would fail and exit at step 6 (corrected that typo) when trying to stop Klipper via init.d.
Changing the used command to systemctl will be compatible with both init.d and systemd services.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>