Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Install

Grant Ongers edited this page May 26, 2020 · 19 revisions

Python

Make sure you are running Python version (v) 2.7.13 < v < 3

Pip

Install pip and then (if you have both Python2 and Python3 installed) be sure to use the correct pip commands below by setting an alias for pip2 to pip

virtualenv

To avoid conflicts with other python packages use a virtualenv

pip install virtualenv

Install Service Manager

cd ~
virtualenv -p `which python2` servicemanager
source servicemanager/bin/activate
pip install servicemanager

Or if you want to upgrade to the newest

pip install servicemanager --upgrade

note: you may need to source the virtualenv in each new terminal session before using servicemanager. For example you can add this to your shell profile (e.g. .zprofile or .bash_profile)

source ~/servicemanager/bin/activate

Tab-completion

From 0.0.13, servicemanager can use argcomplete to provide tab completion in bash. In order to enable this, put the following in .bashrc or .profile in your home directory:

eval "$(register-python-argcomplete sm)"
Clone this wiki locally