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

Side by Side Diff: utils/external_packages.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 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 | « tko/parsers/version_1.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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 return False 471 return False
472 472
473 473
474 # NOTE: This class definition must come -before- all other ExternalPackage 474 # NOTE: This class definition must come -before- all other ExternalPackage
475 # classes that need to use this version of setuptools so that is is inserted 475 # classes that need to use this version of setuptools so that is is inserted
476 # into the ExternalPackage.subclasses list before them. 476 # into the ExternalPackage.subclasses list before them.
477 class SetuptoolsPackage(ExternalPackage): 477 class SetuptoolsPackage(ExternalPackage):
478 # For all known setuptools releases a string compare works for the 478 # For all known setuptools releases a string compare works for the
479 # version string. Hopefully they never release a 0.10. (Their own 479 # version string. Hopefully they never release a 0.10. (Their own
480 # version comparison code would break if they did.) 480 # version comparison code would break if they did.)
481 version = '0.6c9' 481 version = '0.6c11'
482 urls = ('http://pypi.python.org/packages/source/s/setuptools/' 482 urls = ('http://pypi.python.org/packages/source/s/setuptools/'
483 'setuptools-%s.tar.gz' % (version,),) 483 'setuptools-%s.tar.gz' % (version,),)
484 local_filename = 'setuptools-%s.tar.gz' % version 484 local_filename = 'setuptools-%s.tar.gz' % version
485 hex_sum = '79086433b341f0c1df45e10d586a7d3cc25089f1' 485 hex_sum = '8d1ad6384d358c547c50c60f1bfdb3362c6c4a7d'
486 486
487 SUDO_SLEEP_DELAY = 15 487 SUDO_SLEEP_DELAY = 15
488 488
489 489
490 def _build_and_install(self, install_dir): 490 def _build_and_install(self, install_dir):
491 """Install setuptools on the system.""" 491 """Install setuptools on the system."""
492 logging.info('NOTE: setuptools install does not use install_dir.') 492 logging.info('NOTE: setuptools install does not use install_dir.')
493 return self._build_and_install_from_package(install_dir) 493 return self._build_and_install_from_package(install_dir)
494 494
495 495
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 symlink_path = os.path.join( 744 symlink_path = os.path.join(
745 install_dir, GwtPackage.name, self.symlink_name) 745 install_dir, GwtPackage.name, self.symlink_name)
746 if os.path.exists(symlink_path): 746 if os.path.exists(symlink_path):
747 os.remove(symlink_path) 747 os.remove(symlink_path)
748 os.symlink(dest, symlink_path) 748 os.symlink(dest, symlink_path)
749 return True 749 return True
750 750
751 751
752 if __name__ == '__main__': 752 if __name__ == '__main__':
753 sys.exit(main()) 753 sys.exit(main())
OLDNEW
« no previous file with comments | « tko/parsers/version_1.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698