setup.py: Print the detected Ninja and quote build_dir

The build_dir is an absolute path, so quote it.
This commit is contained in:
Nirbheek Chauhan 2017-01-03 22:59:52 +05:30
parent b75903c8f8
commit 97262139f1

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"
" $ ninja -C %s" % build_dir)
" $ {} -C {!r}".format(os.path.basename(ninja), build_dir))
except subprocess.CalledProcessError:
return False