summaryrefslogtreecommitdiff
path: root/source4/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-12 13:05:36 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-12 02:13:19 +0000
commita89331e95480b049fa1feb314d210bc650c04494 (patch)
treef133b85fc81187bbce5faa0e9887695af082cfd3 /source4/wscript
parent4ad64408c55df8ef976c1bb131cc7328a79f418d (diff)
downloadsamba-a89331e95480b049fa1feb314d210bc650c04494.tar.gz
samba-a89331e95480b049fa1feb314d210bc650c04494.tar.bz2
samba-a89331e95480b049fa1feb314d210bc650c04494.zip
s4: mark us as not supporting python3 yet
python3 works fine with waf fine, but our C interfaces need 2.x for now
Diffstat (limited to 'source4/wscript')
-rw-r--r--source4/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/wscript b/source4/wscript
index 806c58a4f2..de84a09fa1 100644
--- a/source4/wscript
+++ b/source4/wscript
@@ -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')