Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommands/auto-install8
-rw-r--r--config/modules/sugar.json10
-rw-r--r--devbot/autoinstall.py57
3 files changed, 0 insertions, 75 deletions
diff --git a/commands/auto-install b/commands/auto-install
deleted file mode 100755
index 2961321..0000000
--- a/commands/auto-install
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/python
-
-import common
-
-from devbot import autoinstall
-
-common.setup()
-autoinstall.observe()
diff --git a/config/modules/sugar.json b/config/modules/sugar.json
index d3585c1..5acb481 100644
--- a/config/modules/sugar.json
+++ b/config/modules/sugar.json
@@ -12,17 +12,10 @@
"repo": "git://git.sugarlabs.org/sugar-toolkit/mainline.git"
},
{
- "auto-install": [
- "src"
- ],
"name": "sugar-toolkit-gtk3",
"repo": "git://git.sugarlabs.org/sugar-toolkit-gtk3/sugar-toolkit-gtk3.git"
},
{
- "auto-install": [
- "src",
- "extensions"
- ],
"name": "sugar",
"repo": "git://git.sugarlabs.org/sugar/mainline.git"
},
@@ -31,9 +24,6 @@
"repo": "git://git.sugarlabs.org/sugar-artwork/mainline.git"
},
{
- "auto-install": [
- "src"
- ],
"name": "sugar-datastore",
"repo": "git://git.sugarlabs.org/sugar-datastore/mainline.git"
},
diff --git a/devbot/autoinstall.py b/devbot/autoinstall.py
deleted file mode 100644
index 053262e..0000000
--- a/devbot/autoinstall.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/python
-
-from distutils.sysconfig import parse_makefile
-import os
-import shutil
-
-import common
-
-from gi.repository import Gio
-from gi.repository import GLib
-
-from devbot import config
-
-monitors = []
-
-def _install(module, file):
- print "Installing %s" % file.get_path()
-
- source_dir = module.get_source_dir()
- build_dir = module.get_build_dir()
-
- dir = os.path.dirname(file.get_path())
- relative_path = os.path.relpath(dir, source_dir)
- makefile_path = os.path.join(build_dir, relative_path, "Makefile")
- makefile = parse_makefile(makefile_path)
-
- for variable in makefile:
- if variable.endswith("_PYTHON"):
- dir_variable = "%sdir" % variable.replace("_PYTHON", "")
- prefix_dir = makefile[dir_variable]
- shutil.copy(file.get_path(), prefix_dir)
-
-def _changed_cb(monitor, file, other_file, event_flags, module):
- if event_flags == Gio.FileMonitorEvent.CHANGED:
- if file.get_path().endswith(".py"):
- _install(module, file)
-
-def _observe_dir(module, dir_to_observe):
- for root, dirs, files in os.walk(dir_to_observe):
- for dir in dirs:
- file = Gio.File.new_for_path(os.path.join(root, dir))
-
- monitor = file.monitor(Gio.FileMonitorFlags.NONE, None)
- monitor.connect("changed", _changed_cb, module)
- monitors.append(monitor)
-
-def observe():
- for module in config.load_modules():
- if module.auto_install:
- print "Observing the %s module" % module.name
-
- source_dir = module.get_source_dir()
- for dir in module.auto_install:
- _observe_dir(module, os.path.join(source_dir, dir))
-
- main_loop = GLib.MainLoop()
- main_loop.run()