➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: setup doesn't report missing _ssl and _hashlib
类型: behavior Stage: resolved
Components: Build Versions: Python 3.9, Python 3.8
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: christian.heimes, miss-islington
优先级: normal 关键字: patch

Created on 2019-04-09 15:30 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12746 merged christian.heimes, 2019-04-09 15:35
Messages (2)
msg339765 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) 日期: 2019-04-09 15:30
setup does not report _ssl and _hashlib as failed to build in case OpenSSL libs or headers are missing. Related to #36544 and #36146



Reproducer:
$ ./configure --with-openssl=/invalid
$ make
...
running build
running build_ext

The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           

running build_scripts
...



With fix:
$ ./configure --with-openssl=/invalid
$ make
...
running build
running build_ext

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_hashlib              _ssl                                     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

running build_scripts
...
msg339775 - (view) Author: miss-islington (miss-islington) 日期: 2019-04-09 16:40
New changeset 8abc3f4f91e6b523c761c7a6fa2e3405019803a1 by Miss Islington (bot) (Christian Heimes) in branch 'master':
bpo-36577: setup.py reports missing OpenSSL again (GH-12746)
https://github.com/python/cpython/commit/8abc3f4f91e6b523c761c7a6fa2e3405019803a1
历史
日期 用户 动作 参数
2022-04-11 14:59:13admin修改github: 80758
2019-04-09 16:47:44christian.heimes修改状态: open -> closed
type: behavior
resolution: fixed
stage: patch review -> resolved
2019-04-09 16:40:14miss-islington修改抄送: + miss-islington
消息: + msg339775
2019-04-09 15:35:05christian.heimes修改keywords: + patch
stage: patch review
pull_requests: + pull_request12672
2019-04-09 15:30:25christian.heimes创建