From: yash Date: Fri, 13 Mar 2015 20:50:39 +0000 (+0530) Subject: swc-installation-test-2.py: Comment explaining implemention X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c1913d1a6be11eafacbbe5e178418c7953d57a8;p=swc-setup-installation-test.git swc-installation-test-2.py: Comment explaining implemention --- diff --git a/swc-installation-test-2.py b/swc-installation-test-2.py index 053bab6..74d44c8 100755 --- a/swc-installation-test-2.py +++ b/swc-installation-test-2.py @@ -22,6 +22,25 @@ version of a particular dependency, and you just want to re-test that dependency. """ +# Some details about the implementation: + +# The dependencies are divided into a hierarchy of classes rooted on +# Dependency class. You can refer to the code to see which package +# comes under which type of dependency. + +# The CHECKER dictionary stores information about all the dependencies +# and CHECKS stores list of the dependencies which are to be checked in +# the current workshop. + +# In the "__name__ == '__main__'" block, we launch all the checks with +# check() function, which prints information about the tests as they run +# and details about the failures after the tests complete. In case of +# failure, the functions print_system_info() and print_suggestions() +# are called after this, where the former prints information about the +# user's system for debugging purposes while the latter prints some +# suggestions to follow. + + from __future__ import print_function # for Python 2.6 compatibility import distutils.ccompiler as _distutils_ccompiler