I am struggling to compile Python 3.9.1 on a very custom Linux system (ancient core with tons of hand-compiled newer versions of stuff, can’t do anything about it) where I need to basically specify, for almost every module, their location individually. To that end, I ran things like
$ ./configure --with-openssl=/path/to/my/openssl --with-bz2=/other/path/to/libbz2 --with-sqlite3=/yet/another/path …
where, under these paths, there are usually ./lib, ./include and ./bin directories with the appropriate libraries, both shared and unshared. But somehow, the build process does not seem to find it, and looking into setup.py into find_modules() didn’t make me any wiser, too. In the end, I get messages that several _module s were not found, and even, that _ssl has been removed because it could not be imported. Furthermore, documentation on this topic is unfortunately a bit scant.
Also, does Python support the pkg-config standard? I could not see anything, but that would help.
Can anyone please help me out?