mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'master' into check_swig_version
This commit is contained in:
commit
44b571172b
|
@ -593,7 +593,7 @@ def autoconfigure(execute_method):
|
|||
Options.options.__dict__ = tmp
|
||||
else:
|
||||
run_command(cmd)
|
||||
run_command(self.cmd)
|
||||
run_command(self.cmd)
|
||||
else:
|
||||
return execute_method(self)
|
||||
return execute
|
||||
|
|
|
@ -515,7 +515,7 @@ def check_python_version(conf, minver=None):
|
|||
conf.msg('Checking for python version', pyver_full)
|
||||
else:
|
||||
minver_str = '.'.join(map(str, minver))
|
||||
conf.msg('Checking for python version', pyver_full, ">= %s" % (minver_str,) and 'GREEN' or 'YELLOW')
|
||||
conf.msg('Checking for python version >= %s' % (minver_str,), pyver_full, color=result and 'GREEN' or 'YELLOW')
|
||||
|
||||
if not result:
|
||||
conf.fatal('The python version is too old, expecting %r' % (minver,))
|
||||
|
|
|
@ -76,7 +76,7 @@ def make_test(self):
|
|||
if not hasattr(self, 'ut_env'):
|
||||
self.ut_env = dct = dict(os.environ)
|
||||
def add_path(var):
|
||||
dct[var] = self.ut_paths + dct[var]
|
||||
dct[var] = self.ut_paths + dct.get(var,'')
|
||||
if Utils.is_win32:
|
||||
add_path('PATH')
|
||||
elif Utils.unversioned_sys_platform() == 'darwin':
|
||||
|
|
Loading…
Reference in New Issue