diff --git a/setupbase.py b/setupbase.py index fe32e16..81f9feb 100644 --- a/setupbase.py +++ b/setupbase.py @@ -357,7 +357,7 @@ def check_for_dependencies(): check_for_sphinx, check_for_pygments, check_for_nose, check_for_pexpect, check_for_pyzmq, check_for_readline, - check_for_jinja2 + check_for_jinja2, check_for_tornado ) print_line() print_raw("BUILDING IPYTHON") @@ -374,6 +374,7 @@ def check_for_dependencies(): check_for_nose() check_for_pexpect() check_for_pyzmq() + check_for_tornado() check_for_readline() check_for_jinja2() diff --git a/setupext/setupext.py b/setupext/setupext.py index e4ea165..83d540d 100644 --- a/setupext/setupext.py +++ b/setupext/setupext.py @@ -130,6 +130,16 @@ def check_for_pyzmq(): " qtconsole, notebook, and parallel computing capabilities)" % zmq.__version__) return False +def check_for_tornado(): + try: + import tornado + except ImportError: + print_status('tornado', "no (required for notebook)") + return False + else: + print_status('tornado', tornado.version) + return True + def check_for_readline(): from distutils.version import LooseVersion try: