s4: mark us as not supporting python3 yet
authorAndrew Tridgell <tridge@samba.org>
Tue, 12 Oct 2010 02:05:36 +0000 (13:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 12 Oct 2010 02:13:19 +0000 (02:13 +0000)
python3 works fine with waf fine, but our C interfaces need 2.x for
now

source4/wscript

index 806c58a4f2e6201d864cee73de441766f5106061..de84a09fa16ea8b8bde075cbf493376c7a278e44 100644 (file)
@@ -8,7 +8,7 @@ VERSION=None
 
 import sys, os
 sys.path.insert(0, srcdir+"/buildtools/wafsamba")
-import wafsamba, Options, samba_dist, Scripting
+import wafsamba, Options, samba_dist, Scripting, Utils
 
 
 def load_version(have_git=False):
@@ -93,6 +93,9 @@ def configure(conf):
     conf.check_python_version((2,4,2))
     conf.check_python_headers(mandatory=True)
 
+    if int(conf.env['PYTHON_VERSION'][0]) >= 3:
+        raise Utils.WafError('Python version 3.x is not supported by Samba yet')
+
     conf.RECURSE('dynconfig')
     conf.RECURSE('scripting/python')
     conf.RECURSE('lib/ldb')