##// END OF EJS Templates
Implemented smart autoindenting.
Implemented smart autoindenting.

File last commit:

r4248:eb063698
r4512:4fb6f617
Show More
__init__.py
34 lines | 1.1 KiB | text/x-python | PythonLexer
MinRK
cleaner error on pyzmq < 2.0.10.
r3317 #-----------------------------------------------------------------------------
# Copyright (C) 2010 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING.txt, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
MinRK
update zmq dependency to 2.1.4
r4028 # Verify zmq version dependency >= 2.1.4
MinRK
cleaner error on pyzmq < 2.0.10.
r3317 #-----------------------------------------------------------------------------
MinRK
warn on detection of libzmq 3
r4248 import warnings
MinRK
update zmq dependency to 2.1.4
r4028 minimum_pyzmq_version = "2.1.4"
MinRK
cleaner error on pyzmq < 2.0.10.
r3317
try:
import zmq
except ImportError:
raise ImportError("IPython.zmq requires pyzmq >= %s"%minimum_pyzmq_version)
pyzmq_version = zmq.__version__
if pyzmq_version < minimum_pyzmq_version:
raise ImportError("IPython.zmq requires pyzmq >= %s, but you have %s"%(
minimum_pyzmq_version, pyzmq_version))
del pyzmq_version
MinRK
warn on detection of libzmq 3
r4248
if zmq.zmq_version() >= '3.0.0':
warnings.warn("""libzmq 3 detected.
It is unlikely that IPython's zmq code will work properly.
Please install libzmq stable, which is 2.1.x or 2.2.x""",
RuntimeWarning)