+# if auto-debuild is available, provide a wrapper for it
+try:
+ import auto_debuild
+ class AutoDebuild:
+ def __init__(self, sourceFolder, module):
+ self.autoDebuildConfig = {}
+
+ def configure(self, force=False): # force is ignored
+ self.files = auto_debuild.createDebianFiles(self.autoDebuildConfig)
+
+ def build(self):
+ auto_debuild.buildDebianPackage(self.autoDebuildConfig)
+
+ def install(self):
+ subprocess.check_call(['sudo', 'dpkg', '--install'] + self.files)
+except ImportError:
+ pass