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

Side by Side Diff: pylib/gyp/__init__.py

Issue 22816026: Convert setup.py to use setuptools (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: remove ez_setup.py Created 7 years, 3 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
« no previous file with comments | « gyp_main.py ('k') | setup.py » ('j') | 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/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 Google Inc. All rights reserved. 3 # Copyright (c) 2012 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import copy 7 import copy
8 import gyp.input 8 import gyp.input
9 import optparse 9 import optparse
10 import os.path 10 import os.path
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 return 0 535 return 0
536 536
537 537
538 def main(args): 538 def main(args):
539 try: 539 try:
540 return gyp_main(args) 540 return gyp_main(args)
541 except GypError, e: 541 except GypError, e:
542 sys.stderr.write("gyp: %s\n" % e) 542 sys.stderr.write("gyp: %s\n" % e)
543 return 1 543 return 1
544 544
545 # NOTE: setuptools generated console_scripts calls function with no arguments
546 def script_main():
547 return main(sys.argv[1:])
548
545 if __name__ == '__main__': 549 if __name__ == '__main__':
546 sys.exit(main(sys.argv[1:])) 550 sys.exit(script_main())
OLDNEW
« no previous file with comments | « gyp_main.py ('k') | setup.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698