Changeset 174102 in webkit


Ignore:
Timestamp:
Sep 30, 2014 5:50:48 AM (10 years ago)
Author:
evab.u-szeged@partner.samsung.com
Message:

Require Python 2.7 version
https://bugs.webkit.org/show_bug.cgi?id=137112

Reviewed by Csaba Osztrogonác.

  • Scripts/ensure-valid-python:

(checkPythonVersion):

  • Scripts/webkitpy/common/version_check.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r174096 r174102  
     12014-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
    1122014-09-30  Martin Hock  <mhock@apple.com>
    213
  • trunk/Tools/Scripts/ensure-valid-python

    r86007 r174102  
    3737sub checkPythonVersion()
    3838{
    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))"`;
    4141    return exitStatus($?) == 0;
    4242}
  • trunk/Tools/Scripts/webkitpy/common/version_check.py

    r136545 r174102  
    2929import sys
    3030
    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]
     31if 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]
    3333    sys.exit(1)
Note: See TracChangeset for help on using the changeset viewer.