[New-bugs-announce] [issue38832] setup.py can report builtin modules as missing modules

Christian Heimes report at bugs.python.org
Sun Nov 17 12:28:33 EST 2019


New submission from Christian Heimes <lists at cheimes.de>:

setup.py can report statically linked modules as missing when detect_modules() have flagged the modules as missing.

In my case I have modified Modules/Setup.local to statically link _ssl and _hashlib:

$ cat Modules/Setup.local 
SSL=/tmp/openssl
_socket socketmodule.c
_ssl _ssl.c -I$(SSL)/include $(SSL)/lib/libcrypto.a $(SSL)/lib/libssl.a
_hashlib _hashopenssl.c -I$(SSL)/include $(SSL)/lib/libcrypto.a

make successfully compiles _socket, _ssl, and _hashlib into the main interpreter binary. setup.py does not list _ssl and _hashlib as builtin but as missing modules because detect_modules() detects dependencies as missing.

The problem can be reproduced on an old Ubuntu or RHEL system with OpenSSL 1.0.1 and a custom OpenSSL installation.

----------
components: Build
messages: 356821
nosy: christian.heimes, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: setup.py can report builtin modules as missing modules
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38832>
_______________________________________


More information about the New-bugs-announce mailing list