setup.py: Print the detected Ninja and quote build_dir
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 3 Jan 2017 17:29:52 +0000 (22:59 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 3 Jan 2017 17:31:02 +0000 (23:01 +0530)
The build_dir is an absolute path, so quote it.

setup.py

index 38d4f72..ec04cc1 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -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