OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 # Run to install the necessary components to run webdriver on the buildbots or | 7 # Run to install the necessary components to run webdriver on the buildbots or |
8 # on your local machine. | 8 # on your local machine. |
9 # Note: The setup steps can be done fairly easily by hand. This script is | 9 # Note: The setup steps can be done fairly easily by hand. This script is |
10 # intended to simply and reduce the time for setup since there are a fair number | 10 # intended to simply and reduce the time for setup since there are a fair number |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 break | 234 break |
235 page = urllib2.urlopen(self.SETUPTOOLS_SITE) | 235 page = urllib2.urlopen(self.SETUPTOOLS_SITE) |
236 run_cmd('%s %s' % (admin_keyword, python_cmd), page.read()) | 236 run_cmd('%s %s' % (admin_keyword, python_cmd), page.read()) |
237 page = urllib2.urlopen(self.PIP_SITE) | 237 page = urllib2.urlopen(self.PIP_SITE) |
238 run_cmd('%s %s' % (admin_keyword, python_cmd), page.read()) | 238 run_cmd('%s %s' % (admin_keyword, python_cmd), page.read()) |
239 run_cmd('%s %s install -U selenium' % (admin_keyword, pip_cmd)) | 239 run_cmd('%s %s install -U selenium' % (admin_keyword, pip_cmd)) |
240 | 240 |
241 def main(): | 241 def main(): |
242 args = parse_args() | 242 args = parse_args() |
243 SeleniumBindingsInstaller(args.buildbot).run() | 243 SeleniumBindingsInstaller(args.buildbot).run() |
244 GoogleCodeInstaller('chromedriver', ind_depot_tools_location(args.buildbot), | 244 GoogleCodeInstaller('chromedriver', find_depot_tools_location(args.buildbot), |
245 lambda x: 'chromedriver_%(os)s_%(version)s.zip' % x).run() | 245 lambda x: 'chromedriver_%(os)s_%(version)s.zip' % x).run() |
246 if 'win32' not in sys.platform and 'cygwin' not in sys.platform: | 246 if 'win32' not in sys.platform and 'cygwin' not in sys.platform: |
247 GoogleCodeInstaller('selenium', os.path.dirname(os.path.abspath(__file__)), | 247 GoogleCodeInstaller('selenium', os.path.dirname(os.path.abspath(__file__)), |
248 lambda x: 'selenium-server-standalone-%(version)s.jar' % x).run() | 248 lambda x: 'selenium-server-standalone-%(version)s.jar' % x).run() |
249 | 249 |
250 if args.firefox: | 250 if args.firefox: |
251 FirefoxInstaller().run() | 251 FirefoxInstaller().run() |
252 | 252 |
253 if __name__ == '__main__': | 253 if __name__ == '__main__': |
254 main() | 254 main() |
OLD | NEW |