Revision: 41980
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41980
Author:   campbellbarton
Date:     2011-11-19 00:01:10 +0000 (Sat, 19 Nov 2011)
Log Message:
-----------
add python3 checks to avoid confusion from errors with python2.

Modified Paths:
--------------
    trunk/blender/build_files/cmake/cmake_consistency_check.py
    trunk/blender/build_files/cmake/project_info.py
    trunk/blender/build_files/cmake/project_source_info.py

Modified: trunk/blender/build_files/cmake/cmake_consistency_check.py
===================================================================
--- trunk/blender/build_files/cmake/cmake_consistency_check.py  2011-11-18 
23:32:17 UTC (rev 41979)
+++ trunk/blender/build_files/cmake/cmake_consistency_check.py  2011-11-19 
00:01:10 UTC (rev 41980)
@@ -22,6 +22,12 @@
 
 # <pep8 compliant>
 
+import sys
+if not sys.version.startswith("3"):
+    print("\nPython3.x needed, found %s.\nAborting!\n" %
+          sys.version.partition(" ")[0])
+    sys.exit(1)
+
 from cmake_consistency_check_config import IGNORE, UTF8_CHECK, SOURCE_DIR
 
 import os

Modified: trunk/blender/build_files/cmake/project_info.py
===================================================================
--- trunk/blender/build_files/cmake/project_info.py     2011-11-18 23:32:17 UTC 
(rev 41979)
+++ trunk/blender/build_files/cmake/project_info.py     2011-11-19 00:01:10 UTC 
(rev 41980)
@@ -44,7 +44,14 @@
     "project_name_get"
 )
 
+
 import sys
+if not sys.version.startswith("3"):
+    print("\nPython3.x needed, found %s.\nAborting!\n" %
+          sys.version.partition(" ")[0])
+    sys.exit(1)
+
+
 import os
 from os.path import join, dirname, normpath, abspath, splitext, exists
 

Modified: trunk/blender/build_files/cmake/project_source_info.py
===================================================================
--- trunk/blender/build_files/cmake/project_source_info.py      2011-11-18 
23:32:17 UTC (rev 41979)
+++ trunk/blender/build_files/cmake/project_source_info.py      2011-11-19 
00:01:10 UTC (rev 41980)
@@ -25,6 +25,14 @@
     "SOURCE_DIR",
     )
 
+
+import sys
+if not sys.version.startswith("3"):
+    print("\nPython3.x needed, found %s.\nAborting!\n" %
+          sys.version.partition(" ")[0])
+    sys.exit(1)
+
+
 import os
 from os.path import join, dirname, normpath, abspath
 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to