New submission from Christian Heimes <li...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38832>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to