| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The LUCI Authors. All rights reserved. | 2 # Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # that can be found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Regenerates vendored components and derivative files from external sources. | 6 """Regenerates vendored components and derivative files from external sources. |
| 7 | 7 |
| 8 This is a utililty script that is intended to be run on a Linux-based system. | 8 This is a utililty script that is intended to be run on a Linux-based system. |
| 9 Other operating systems may work, but are not supported. | 9 Other operating systems may work, but are not supported. |
| 10 | 10 |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 c.check_call([c.tool('protoc'), '-I', d, '--python_out', outdir] + | 274 c.check_call([c.tool('protoc'), '-I', d, '--python_out', outdir] + |
| 275 all_proto) | 275 all_proto) |
| 276 | 276 |
| 277 | 277 |
| 278 _ACTIONS = ( | 278 _ACTIONS = ( |
| 279 _VendoredPipPackage( | 279 _VendoredPipPackage( |
| 280 'bootstrap/virtualenv', | 280 'bootstrap/virtualenv', |
| 281 name='virtualenv', | 281 name='virtualenv', |
| 282 version='15.1.0'), | 282 version='15.1.0'), |
| 283 ) | |
| 284 | 283 |
| 285 _VendoredPipPackage( | 284 _VendoredPipPackage( |
| 286 'recipe_engine/third_party/six', | 285 'recipe_engine/third_party/six', |
| 287 name='six', | 286 name='six', |
| 288 version='1.10.0'), | 287 version='1.10.0'), |
| 289 | 288 |
| 290 _VendoredPipPackage( | 289 _VendoredPipPackage( |
| 291 'recipe_engine/third_party/requests', | 290 'recipe_engine/third_party/requests', |
| 292 name='requests', | 291 name='requests', |
| 293 version='2.10.0'), | 292 version='2.10.0'), |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 vdir = os.path.join(td, 'vendor_%d' % (i,)) | 342 vdir = os.path.join(td, 'vendor_%d' % (i,)) |
| 344 os.makedirs(vdir) | 343 os.makedirs(vdir) |
| 345 | 344 |
| 346 # Execute the vendor script. | 345 # Execute the vendor script. |
| 347 act.run(c, vdir, opts) | 346 act.run(c, vdir, opts) |
| 348 | 347 |
| 349 | 348 |
| 350 if __name__ == '__main__': | 349 if __name__ == '__main__': |
| 351 logging.basicConfig(level=logging.DEBUG) | 350 logging.basicConfig(level=logging.DEBUG) |
| 352 sys.exit(main(sys.argv[1:])) | 351 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |