From 8f43a0a4fe641b36e31e63418a3263e60b695d8e Mon Sep 17 00:00:00 2001 From: Tim G Date: Fri, 16 Jan 2015 10:06:36 +1000 Subject: [PATCH] Load distutils on all platforms EXCEPT Solaris. Solaris doesn't ship distutils with with the default Python package. This patch fixes "service" on Solaris since 30d6713. --- system/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/service.py b/system/service.py index fea5722710e..362359dd553 100644 --- a/system/service.py +++ b/system/service.py @@ -106,7 +106,8 @@ import select import time import string -if platform.system() == 'Linux': +# The distutils module is not shipped with SUNWPython on Solaris. +if platform.system() != 'SunOS': from distutils.version import LooseVersion class Service(object):