Browse files

Don't fail the setup.py if zmq is a liile on the old side

  • Loading branch information...
1 parent 6969758 commit 6a3152255a2453659614f2181d6c127ec5d0a604 @thatch45 thatch45 committed Feb 26, 2014
Showing with 7 additions and 6 deletions.
  1. +7 −6 setup.py
View
13 setup.py
@@ -523,12 +523,13 @@ def run(self):
'email.mime.*',
]
-if HAS_ZMQ and zmq.pyzmq_version_info() >= (0, 14):
- # We're freezing, and when freezing ZMQ needs to be installed, so this
- # works fine
- if 'zmq.core.*' in FREEZER_INCLUDES:
- # For PyZMQ >= 0.14, freezing does not need 'zmq.core.*'
- FREEZER_INCLUDES.remove('zmq.core.*')
+if hasattr(zmq, 'pyzmq_version_info'):
+ if HAS_ZMQ and zmq.pyzmq_version_info() >= (0, 14):
+ # We're freezing, and when freezing ZMQ needs to be installed, so this
+ # works fine
+ if 'zmq.core.*' in FREEZER_INCLUDES:
+ # For PyZMQ >= 0.14, freezing does not need 'zmq.core.*'
+ FREEZER_INCLUDES.remove('zmq.core.*')
if IS_WINDOWS_PLATFORM:
FREEZER_INCLUDES.extend([

0 comments on commit 6a31522

Please sign in to comment.