boost: make python2 optional
@@ -22,9 +22,9 @@ notfound = dependency('boost', static: s, modules : ['this_should_not_exist_o
assert(not notfound.found())
pymod = import('python')
-python2 = pymod.find_installation('python2', required: host_machine.system() == 'linux', disabler: true)
+python2 = pymod.find_installation('python2', required: false , disabler: true)
python3 = pymod.find_installation('python3', required: host_machine.system() == 'linux', disabler: true)
-python2dep = python2.dependency(required: host_machine.system() == 'linux', embed: true, disabler: true)
+python2dep = python2.dependency(required: false , embed: true, disabler: true)
python3dep = python3.dependency(required: host_machine.system() == 'linux', embed: true, disabler: true)
# compile python 2/3 modules only if we found a corresponding python version
