diff --git a/setup.py b/setup.py index b2e1cac831a..b79ea05aa83 100644 --- a/setup.py +++ b/setup.py @@ -613,12 +613,12 @@ def detect_modules(self): 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']) )