summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 09:28:26 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 09:28:26 -0700
commit72b5d4732db219ec84b824ad41074cfc5c07d1a4 (patch)
tree691d2f8a74bb28705438a5ed466ae23a7f4f4149
parented5ffb10c00eefda1807e41a5b48450a70d62b2a (diff)
02_avoid_version_checking.diff
Patch-Name: 02_avoid_version_checking.diff
-rwxr-xr-xbin/kiwi-i18n12
-rwxr-xr-xbin/kiwi-ui-test12
2 files changed, 12 insertions, 12 deletions
diff --git a/bin/kiwi-i18n b/bin/kiwi-i18n
index d4d5752..ab0465d 100755
--- a/bin/kiwi-i18n
+++ b/bin/kiwi-i18n
@@ -20,7 +20,7 @@ import os
import sys
# Required version of Python
-REQUIRED_VERSION = (2, 1)
+#REQUIRED_VERSION = (2, 1)
# Directory name, defaults to name of binary, it is relative to ..
# a, __init__.py and main.py is expected to be found there.
@@ -33,11 +33,11 @@ APPNAME = None
dirname = DIRNAME or os.path.split(sys.argv[0])[1]
appname = APPNAME or dirname.capitalize()
-if sys.hexversion < int('%02x%02x0000' % REQUIRED_VERSION, 16):
- raise SystemExit("ERROR: Python %s or higher is required to run %s, "
- "%s found" % ('.'.join(map(str, REQUIRED_VERSION)),
- appname,
- sys.version.split()[0]))
+# if sys.hexversion < int('%02x%02x0000' % REQUIRED_VERSION, 16):
+# raise SystemExit("ERROR: Python %s or higher is required to run %s, "
+# "%s found" % ('.'.join(map(str, REQUIRED_VERSION)),
+# appname,
+# sys.version.split()[0]))
# Figure out the directy which is the prefix
# path-of-current-file/..
diff --git a/bin/kiwi-ui-test b/bin/kiwi-ui-test
index 491fa9a..fcfe6dd 100755
--- a/bin/kiwi-ui-test
+++ b/bin/kiwi-ui-test
@@ -20,7 +20,7 @@ import os
import sys
# Required version of Python
-REQUIRED_VERSION = (2, 3)
+#REQUIRED_VERSION = (2, 3)
# Directory name, defaults to name of binary, it is relative to ..
# a, __init__.py and main.py is expected to be found there.
@@ -33,11 +33,11 @@ APPNAME = None
dirname = DIRNAME or os.path.split(sys.argv[0])[1]
appname = APPNAME or dirname.capitalize()
-if sys.hexversion < int('%02x%02x0000' % REQUIRED_VERSION, 16):
- raise SystemExit("ERROR: Python %s or higher is required to run %s, "
- "%s found" % ('.'.join(map(str, REQUIRED_VERSION)),
- appname,
- sys.version.split(' ', 1)[0]))
+# if sys.hexversion < int('%02x%02x0000' % REQUIRED_VERSION, 16):
+# raise SystemExit("ERROR: Python %s or higher is required to run %s, "
+# "%s found" % ('.'.join(map(str, REQUIRED_VERSION)),
+# appname,
+# sys.version.split(' ', 1)[0]))
# Figure out the directy which is the prefix
# path-of-current-file/..