mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
build: Do not make python mandatory to build
Clearly we have python or else we would not be running, so this is about if we have a new enough version. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
24127acae0
commit
760b176d86
@ -6,6 +6,10 @@ from waflib.Configure import conf
|
||||
|
||||
@conf
|
||||
def SAMBA_CHECK_PYTHON(conf, mandatory=True, version=(2,6,0)):
|
||||
|
||||
if not mandatory:
|
||||
version=(2,6,0)
|
||||
|
||||
# enable tool to build python extensions
|
||||
if conf.env.HAVE_PYTHON_H:
|
||||
conf.check_python_version(version)
|
||||
|
3
wscript
3
wscript
@ -151,7 +151,8 @@ def configure(conf):
|
||||
if not (Options.options.without_ad_dc):
|
||||
raise Errors.WafError('--disable-python requires --without-ad-dc')
|
||||
|
||||
conf.SAMBA_CHECK_PYTHON(mandatory=True, version=(2, 6, 0))
|
||||
conf.SAMBA_CHECK_PYTHON(mandatory=not conf.env.disable_python,
|
||||
version=(2, 6, 0))
|
||||
conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=(not conf.env.disable_python))
|
||||
|
||||
if sys.platform == 'darwin' and not conf.env['HAVE_ENVIRON_DECL']:
|
||||
|
Loading…
Reference in New Issue
Block a user