From a89331e95480b049fa1feb314d210bc650c04494 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Oct 2010 13:05:36 +1100 Subject: s4: mark us as not supporting python3 yet python3 works fine with waf fine, but our C interfaces need 2.x for now --- source4/wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/wscript') 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') -- cgit