[Python-checkins] r77261 - python/branches/py3k/setup.py

gregory.p.smith python-checkins at python.org
Sun Jan 3 01:44:10 CET 2010


Author: gregory.p.smith
Date: Sun Jan  3 01:44:10 2010
New Revision: 77261

Log:
small logic cleanup, avoid duplicate openssl_ver check.


Modified:
   python/branches/py3k/setup.py

Modified: python/branches/py3k/setup.py
==============================================================================
--- python/branches/py3k/setup.py	(original)
+++ python/branches/py3k/setup.py	Sun Jan  3 01:44:10 2010
@@ -620,7 +620,7 @@
             exts.append( Extension('_sha256', ['sha256module.c']) )
             exts.append( Extension('_sha512', ['sha512module.c']) )
 
-        if COMPILED_WITH_PYDEBUG or openssl_ver < min_openssl_ver:
+        if COMPILED_WITH_PYDEBUG or not have_usable_openssl:
             # no openssl at all, use our own md5 and sha1
             exts.append( Extension('_md5', ['md5module.c']) )
             exts.append( Extension('_sha1', ['sha1module.c']) )


More information about the Python-checkins mailing list