Anonymous avatar Anonymous committed 68d5378

add missing dependencies for building the virtualenv for ubuntu (tested on 12.04)

Comments (0)

Files changed (2)

     def version(self,package):
         """Look at the distro's packaging system for the package and return a version"""
         raise NotImplementedError
-	
+
     def push_files(self,pathlist,dst):
         for path in pathlist:
             put(path, os.path.join(dst,os.path.basename(path)))
         Installs fpm and also rubygems if not present.
         """
         with settings(user='root'):
-            run("apt-get install rubygems -y")
+            self.build_deps(['rubygems', 'python-virtualenv', 'python-dev'])
             run("gem install fpm")
 
 

tests/test_distro.py

 
     @patch.multiple('parcel.distro', with_settings=with_settings, run=run, put=put, cd=distro_cd)
     @patch('parcel.distro.cache.get', distro_cache)
-    @patch('parcel.distro.Debian.mkdir', distro_mkdir)    
+    @patch('parcel.distro.Debian.mkdir', distro_mkdir)
     def test_setup(self):
         distro_cache.return_value = '/a/test/path/file.gz'
         distro_mkdir.side_effect = ['.parcel-build-temp', '.parcel-build-temp/src', '.parcel-build-temp/build']
 
     @patch.multiple('parcel.distro', with_settings=with_settings, run=run, put=put, cd=distro_cd)
     @patch('parcel.distro.cache.get', distro_cache)
-    @patch('parcel.distro.Debian.mkdir', distro_mkdir)    
+    @patch('parcel.distro.Debian.mkdir', distro_mkdir)
     def test_setup_ubuntu(self):
         distro_cache.return_value = '/a/test/path/file.gz'
         distro_mkdir.side_effect = ['.parcel-build-temp', '.parcel-build-temp/src', '.parcel-build-temp/build']
         ubuntu.setup()
 
-        self.assertTrue(run.call_args_list[0][0][0] == 'apt-get install rubygems -y')
+        self.assertTrue(run.call_args_list[0][0][0] == 'apt-get install -qq rubygems python-virtualenv python-dev')
         self.assertTrue(run.call_args_list[1][0][0] == 'gem install fpm')
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.