aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-14 17:49:15 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-10-23 18:02:02 +0530
commitf79c4396f894aedd14f41d5dbd1474096ef65d4a (patch)
tree1199aa8d3e847053054606029ddca860f0865d0a
parentb50f3e6976989e13d0d413b4af1547f5862cdfa9 (diff)
downloadmeson-f79c4396f894aedd14f41d5dbd1474096ef65d4a.zip
meson-f79c4396f894aedd14f41d5dbd1474096ef65d4a.tar.gz
meson-f79c4396f894aedd14f41d5dbd1474096ef65d4a.tar.bz2
Add repr() implementation for Dependency()
Easier to debug
-rw-r--r--mesonbuild/dependencies.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py
index df6dcff..74738ae 100644
--- a/mesonbuild/dependencies.py
+++ b/mesonbuild/dependencies.py
@@ -37,6 +37,10 @@ class Dependency():
self.is_found = False
self.type_name = type_name
+ def __repr__(self):
+ s = '<{0} {1}: {2}>'
+ return s.format(self.__class__.__name__, self.name, self.is_found)
+
def get_compile_args(self):
return []