Changeset 174102 in webkit
- Timestamp:
- Sep 30, 2014 5:50:48 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r174096 r174102 1 2014-09-30 Eva Balazsfalvi <evab.u-szeged@partner.samsung.com> 2 3 Require Python 2.7 version 4 https://bugs.webkit.org/show_bug.cgi?id=137112 5 6 Reviewed by Csaba Osztrogonác. 7 8 * Scripts/ensure-valid-python: 9 (checkPythonVersion): 10 * Scripts/webkitpy/common/version_check.py: 11 1 12 2014-09-30 Martin Hock <mhock@apple.com> 2 13 -
trunk/Tools/Scripts/ensure-valid-python
r86007 r174102 37 37 sub checkPythonVersion() 38 38 { 39 # Will exit 0 if Python is 2. 5 or greater, non-zero otherwise.40 `python -c "import sys;sys.exit(sys.version_info[:2] < (2,5))"`;39 # Will exit 0 if Python is 2.7, non-zero otherwise. 40 `python -c "import sys;sys.exit(sys.version_info[:2] != (2,7))"`; 41 41 return exitStatus($?) == 0; 42 42 } -
trunk/Tools/Scripts/webkitpy/common/version_check.py
r136545 r174102 29 29 import sys 30 30 31 if sys.version < '2. 6' or sys.version >= '2.8':32 print >> sys.stderr, "Unsupported Python version: WebKit only supports 2. 6.x - 2.7.x, and you're running %s." % sys.version.split()[0]31 if sys.version < '2.7' or sys.version >= '2.8': 32 print >> sys.stderr, "Unsupported Python version: WebKit only supports 2.7.x, and you're running %s." % sys.version.split()[0] 33 33 sys.exit(1)
Note: See TracChangeset
for help on using the changeset viewer.