I have no problem building the native module, when using Python-3.11 on my FreeBSD desktop -- invoking distutils.core.Extension with language = 'c++' is enough to have C++-compiler invoked. However, on the RHEL7 servers Python is much older -- 3.6 -- and the included distutils always invokes gcc, even when the source filenames end with .cpp. The only way to fool it, that I found, is to use env CC=/path/to/g++. Is there a better method, perhaps? Continue reading...