Revert "setup.py: Use the detected Ninja and quote build_dir"

This reverts commit 9a64b727bf.

Closes https://bugzilla.gnome.org/show_bug.cgi?id=776801

The actual fix is in the next commit.
This commit is contained in:
Nirbheek Chauhan 2017-01-03 22:53:18 +05:30
parent 9a64b727bf
commit b75903c8f8
2 changed files with 4 additions and 3 deletions

View file

@ -45,9 +45,10 @@ def git(*args, repository_path='.'):
stderr=subprocess.STDOUT).decode()
def accept_command(commands):
"""Search @commands and returns the first found command"""
"""Search @commands and returns the first found absolute path."""
for command in commands:
if shutil.which(command):
command = shutil.which(command)
if command:
return command
return None

View file

@ -54,7 +54,7 @@ class GstBuildConfigurer:
subprocess.check_call(
[sys.executable, meson, "../"] + self.args + self.get_configs(), cwd=build_dir)
print("\nYou can now build GStreamer and its various subprojects running:\n"
" $ {} -C {!r}".format(ninja, build_dir))
" $ ninja -C %s" % build_dir)
except subprocess.CalledProcessError:
return False