diff setup.py @ 43296:75cd54863250

openssl 0.9.6 is too old to use, use our own modules
author Gregory P. Smith <greg@mad-scientist.com>
date Sun, 09 Sep 2007 18:01:42 +0000
parents 78f1c329c983
children ac198fbd3700
line wrap: on
line diff
--- a/setup.py	Sun Sep 09 06:44:34 2007 +0000
+++ b/setup.py	Sun Sep 09 18:01:42 2007 +0000
@@ -613,12 +613,12 @@
         else:
             missing.append('_hashlib')
 
-        if (openssl_ver < 0x00908000):
+        if openssl_ver < 0x00908000:
             # OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
             exts.append( Extension('_sha256', ['sha256module.c']) )
             exts.append( Extension('_sha512', ['sha512module.c']) )
 
-        if not openssl_ver:
+        if openssl_ver < 0x00907000:
             # no openssl at all, use our own md5 and sha1
             exts.append( Extension('_md5', ['md5module.c']) )
             exts.append( Extension('_sha1', ['sha1module.c']) )