Commits

Brandon Rhodes  committed 7ebb990

Worked around Python 2.5 problem digesting Unicode in setup.py descriptions.

  • Participants
  • Parent commits 47e3c0f

Comments (0)

Files changed (1)

                 'zmq.utils':['*.pxd', '*.h'],
 }
 
+long_description = open('README.txt').read().decode('utf-8')
+if sys.version_info < (2, 6):  # work around Python 2.5 UnicodeEncodeError
+    description = u'zmq package that compiles its own 0MQ / ZeroMQ'
+    long_description = long_description.encode('utf-8')
+else:
+    description = u'zmq package that compiles its own ØMQ / 0MQ / ZeroMQ'
+
 setup(name='pyzmq-static',
       version='2.1.4',
-      description=u'zmq package that compiles its own ØMQ / 0MQ / ZeroMQ',
-      long_description=open('README.txt').read().decode('utf-8'),
+      description=description,
+      long_description=long_description,
       author='Brandon Craig Rhodes',
       author_email='brandon@rhodesmill.org',
       url='http://bitbucket.org/brandon/pyzmq-static',