Commits

Colin Copeland committed 62ddccc

add SCM packages, postgresql-server-dev-8.4, python-dev, distribute, virtualenv

  • Participants
  • Parent commits 96c8ff3

Comments (0)

Files changed (1)

mallet/client_vm.py

 logger = logging.getLogger('mallet.client_vm')
 
 
+class SCM(PackageGroup):
+    packages = ['subversion', 'git-core', 'mercurial']
+
+
 class BuildEssential(PackageGroup):
     packages = ['build-essential']
 
 
 
 class Postgres(lenny.Postgres):
+    packages = ['postgresql', 'postgresql-server-dev-8.4']
 
     def post_install(self, node_wrapper):
         call(['local-gen', 'en_US.UTF-8'])
         call(['pg_createcluster', '--start', '-e', 'UTF-8', '8.4', 'main'])
 
 
+class Python(PackageGroup):
+    packages = ['ipython', 'python-setuptools', 'python-dev']
+
+    def post_install(self, node_wrapper):
+        call(['easy_install', '-U', 'pip'])
+        call(['pip', 'install', '-U', 'distribute'])
+        call(['pip', 'install', '-U', 'virtualenv'])
+
+
 class NodeWrapper(mallet.NodeWrapper):
 
     def hostname(self):
     packages = [
         lenny.Apache,
         Postgres,
-        lenny.Python,
+        Python,
         lenny.Memcache,
         BuildEssential,
         SSH,
+        SCM,
     ]
     node_wrapper = NodeWrapper