summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-04-08 15:57:45 +1000
committerMichael Adam <obnox@samba.org>2013-04-10 00:13:45 +0200
commit58e3c5323e343dcab1c528c6b6a44925b76cb297 (patch)
tree1cc31a5f950aee4759edc30890a75bc585d01fe9 /wscript
parent69b3d1944501f65427fbd12e4ddd3b66e67deedd (diff)
downloadsamba-58e3c5323e343dcab1c528c6b6a44925b76cb297.tar.gz
build: Replace #!/usr/bin/env python with passed in PYTHON=
This means that if we were forced to use a specific python for the build, we will put that binary into the top of samba-tool, so it continues to work after the install. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 1 insertions, 4 deletions
diff --git a/wscript b/wscript
index 4f823102dd5..0410c0bdf3d 100644
--- a/wscript
+++ b/wscript
@@ -82,13 +82,10 @@ def configure(conf):
conf.RECURSE('lib/replace')
- conf.find_program('python', var='PYTHON', mandatory=True)
conf.find_program('perl', var='PERL', mandatory=True)
conf.find_program('xsltproc', var='XSLTPROC')
- # enable tool to build python extensions
- conf.check_tool('python')
- conf.check_python_version((2,4,2))
+ conf.SAMBA_CHECK_PYTHON(mandatory=True)
conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=True)
if sys.platform == 'darwin' and not conf.env['HAVE_ENVIRON_DECL']: