mirror of https://github.com/python/cpython
add missing hashlib.h deps.
This commit is contained in:
parent
5812bdf098
commit
5af7fba6c7
13
setup.py
13
setup.py
|
@ -606,6 +606,7 @@ class PyBuildExt(build_ext):
|
||||||
# The _hashlib module wraps optimized implementations
|
# The _hashlib module wraps optimized implementations
|
||||||
# of hash functions from the OpenSSL library.
|
# of hash functions from the OpenSSL library.
|
||||||
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
|
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
|
||||||
|
depends = ['hashlib.h'],
|
||||||
include_dirs = ssl_incs,
|
include_dirs = ssl_incs,
|
||||||
library_dirs = ssl_libs,
|
library_dirs = ssl_libs,
|
||||||
libraries = ['ssl', 'crypto']) )
|
libraries = ['ssl', 'crypto']) )
|
||||||
|
@ -617,13 +618,17 @@ class PyBuildExt(build_ext):
|
||||||
min_sha2_openssl_ver = 0x00908000
|
min_sha2_openssl_ver = 0x00908000
|
||||||
if COMPILED_WITH_PYDEBUG or openssl_ver < min_sha2_openssl_ver:
|
if COMPILED_WITH_PYDEBUG or openssl_ver < min_sha2_openssl_ver:
|
||||||
# OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
|
# 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('_sha256', ['sha256module.c'],
|
||||||
exts.append( Extension('_sha512', ['sha512module.c']) )
|
depends=['hashlib.h']) )
|
||||||
|
exts.append( Extension('_sha512', ['sha512module.c'],
|
||||||
|
depends=['hashlib.h']) )
|
||||||
|
|
||||||
if COMPILED_WITH_PYDEBUG or not have_usable_openssl:
|
if COMPILED_WITH_PYDEBUG or not have_usable_openssl:
|
||||||
# no openssl at all, use our own md5 and sha1
|
# no openssl at all, use our own md5 and sha1
|
||||||
exts.append( Extension('_md5', ['md5module.c']) )
|
exts.append( Extension('_md5', ['md5module.c'],
|
||||||
exts.append( Extension('_sha1', ['sha1module.c']) )
|
depends=['hashlib.h']) )
|
||||||
|
exts.append( Extension('_sha1', ['sha1module.c'],
|
||||||
|
depends=['hashlib.h']) )
|
||||||
|
|
||||||
# Modules that provide persistent dictionary-like semantics. You will
|
# Modules that provide persistent dictionary-like semantics. You will
|
||||||
# probably want to arrange for at least one of them to be available on
|
# probably want to arrange for at least one of them to be available on
|
||||||
|
|
Loading…
Reference in New Issue