mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
small logic cleanup, avoid duplicate openssl_ver check.
This commit is contained in:
parent
b04ded4927
commit
91ae4a1404
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -620,7 +620,7 @@ class PyBuildExt(build_ext):
|
|||
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']) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue