build: do not duplicate the checks for python in samba4
authorMatthieu Patou <mat@matws.net>
Wed, 8 Dec 2010 21:38:12 +0000 (00:38 +0300)
committerMatthieu Patou <mat@samba.org>
Wed, 8 Dec 2010 23:47:23 +0000 (00:47 +0100)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Dec  9 00:47:23 CET 2010 on sn-devel-104

source4/scripting/python/wscript [deleted file]
source4/wscript

diff --git a/source4/scripting/python/wscript b/source4/scripting/python/wscript
deleted file mode 100644 (file)
index 14e924b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env python
-
-def set_options(opt):
-    # enable options related to building python extensions
-    opt.tool_options('python') # options for disabling pyc or pyo compilation
-
-
-def configure(conf):
-    # enable tool to build python extensions
-    conf.check_tool('python')
-    conf.check_python_version((2,4,2))
-    conf.check_python_headers()
index 145f6b8af886933e02e6d54e388f7c9296135a8a..dabca7f69c17bfa813b0553f5eb90240404d410c 100644 (file)
@@ -33,7 +33,6 @@ def set_options(opt):
     opt.PRIVATE_EXTENSION_DEFAULT('samba4')
     opt.RECURSE('../lib/replace')
     opt.RECURSE('dynconfig')
-    opt.RECURSE('scripting/python')
     opt.RECURSE('lib/ldb')
     opt.RECURSE('selftest')
     opt.RECURSE('lib/tls')
@@ -47,6 +46,9 @@ def set_options(opt):
                    help='enable special build farm options',
                    action='store_true', dest='BUILD_FARM')
 
+    opt.tool_options('python') # options for disabling pyc or pyo compilation
+    # enable options related to building python extensions
+
 
 def configure(conf):
     version = samba_version.load_version(env=conf.env)
@@ -85,7 +87,6 @@ def configure(conf):
         raise Utils.WafError('Python version 3.x is not supported by Samba yet')
 
     conf.RECURSE('dynconfig')
-    conf.RECURSE('scripting/python')
     conf.RECURSE('lib/ldb')
     conf.RECURSE('heimdal_build')
     conf.RECURSE('lib/tls')