Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: utils/external_packages.py

Issue 6821082: Integrate dynamic charts into autotest frontend. (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: Add license. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « frontend/urls.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « frontend/urls.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698