Commit db9a5c47 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜

ninja.recipe: Don't assume python 3 is always `python3`

Instead, use `self.config.python_exe` which will always be a usable
Python 3 for running build commands.
parent b18ecc5b
Pipeline #15549 passed with stages
in 66 minutes and 7 seconds
...@@ -14,7 +14,7 @@ class Recipe(recipe.Recipe): ...@@ -14,7 +14,7 @@ class Recipe(recipe.Recipe):
files_bin = ['bin/ninja'] files_bin = ['bin/ninja']
def configure(self): def configure(self):
shell.call('python3 ./configure.py --bootstrap', self.build_dir) shell.call(self.config.python_exe + ' ./configure.py --bootstrap', self.build_dir)
def install(self): def install(self):
ninja = 'ninja' ninja = 'ninja'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment