OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Please keep this code python 2.4 compatible and stand alone. | 3 # Please keep this code python 2.4 compatible and stand alone. |
4 | 4 |
5 import logging, os, shutil, sys, tempfile, time, urllib2 | 5 import logging, os, shutil, sys, tempfile, time, urllib2 |
6 import subprocess, re | 6 import subprocess, re |
7 from autotest_lib.client.common_lib import utils | 7 from autotest_lib.client.common_lib import utils |
8 | 8 |
9 _READ_SIZE = 64*1024 | 9 _READ_SIZE = 64*1024 |
10 _MAX_PACKAGE_SIZE = 100*1024*1024 | 10 _MAX_PACKAGE_SIZE = 100*1024*1024 |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 shutil.copyfile(self.verified_package, dest) | 743 shutil.copyfile(self.verified_package, dest) |
744 | 744 |
745 symlink_path = os.path.join( | 745 symlink_path = os.path.join( |
746 install_dir, GwtPackage.name, self.symlink_name) | 746 install_dir, GwtPackage.name, self.symlink_name) |
747 if os.path.exists(symlink_path): | 747 if os.path.exists(symlink_path): |
748 os.remove(symlink_path) | 748 os.remove(symlink_path) |
749 os.symlink(dest, symlink_path) | 749 os.symlink(dest, symlink_path) |
750 return True | 750 return True |
751 | 751 |
752 | 752 |
| 753 class GVizAPIPackage(ExternalPackage): |
| 754 version = '1.7.0' |
| 755 url_filename = 'gviz_api_py-%s.tar.gz' % version |
| 756 local_filename = 'google-visualization-python.tar.gz' |
| 757 urls = ('http://google-visualization-python.googlecode.com/files/%s' % ( |
| 758 url_filename),) |
| 759 hex_sum = 'cd9a0fb4ca5c4f86c0d85756f501fd54ccf492d2' |
| 760 |
| 761 _build_and_install = ExternalPackage._build_and_install_from_package |
| 762 _build_and_install_current_dir = ( |
| 763 ExternalPackage._build_and_install_current_dir_noegg) |
| 764 |
| 765 |
753 if __name__ == '__main__': | 766 if __name__ == '__main__': |
754 sys.exit(main()) | 767 sys.exit(main()) |
OLD | NEW |