autosuspend is designed for Python 3 and does not work with Python 2.
The minimal requirements are.
Additionally, the some checks need further dependencies to function properly. Please refer to Available activity checks for individual requirements.
If checks using URLs to load data should support
file:// URLs, requests-file is needed.
Installation from official package sources:
apt-get install autosuspend
Patrick Holthaus has provided an ebuild for Gentoo in his overlay. You can use it as follows:
eselect repository enable pholthaus-overlay emaint sync -r pholthaus-overlay emerge sys-apps/autosuspend
In case you want to generate a package for a different Linux distribution, I’d be glad to hear about that.
autosuspend is a usual Python package and hence can be installed using the common Python packaging tools.
Briefly, the following steps can be used to install autosuspend from source in a system-wide location (as
python3 -m venv /opt/autosuspend /opt/autosuspend/bin/pip install git+https://github.com/languitar/autosuspend.git
Afterwards, copy the systemd unit files found in
/etc/systemd and adapt the contained paths to the installation location.