From 4fedd7f4ee421042fd51e26bfc95293ba7697e6d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 17 Oct 2019 11:24:44 +0200 Subject: [PATCH] It seems python 3 doesn't linke as a parameter here, it will throw: . --- gyp/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gyp/input.py b/gyp/input.py index 4b0023e7..68fdf00d 100644 --- a/gyp/input.py +++ b/gyp/input.py @@ -872,7 +872,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil else: ast_code = compile(cond_expr_expanded, '', 'eval') cached_conditions_asts[cond_expr_expanded] = ast_code - if eval(ast_code, {'__builtins__': None}, variables): + if eval(ast_code, {'__builtins__': {}}, variables): return true_dict return false_dict except SyntaxError as e: