From: Alexandre Detiste <tchet@debian.org>
BugNr: 1066008

--- a/src/weresync/plugins/__init__.py
+++ b/src/weresync/plugins/__init__.py
@@ -26,7 +26,8 @@
 from yapsy.PluginFileLocator import (PluginFileAnalyzerMathingRegex,
                                      PluginFileLocator)
 from yapsy.IPlugin import IPlugin
-from distutils.sysconfig import get_python_lib
+import sysconfig
+get_python_lib = sysconfig.get_path('purelib', 'deb_system')
 import os
 import os.path
 import weresync.daemon.device as device
@@ -223,7 +224,7 @@
 dirs = [
     "/usr/local/weresync/plugins",
     os.path.dirname(__file__),
-    get_python_lib()
+    get_python_lib
 ]
 
 regex_analyzer = PluginFileAnalyzerMathingRegex("regex", "^weresync_.*\.py$")
