Message 116346 - Python tracker
> My (I think fairly straightforward) idea is to just compile the > useful values in Makefile and config.h into _sysconfig.c and arrange > for sysconfig to import that and check it first (fallback to parsing > mf and conf.h). You seem to suggest that by doing so, one can actually dispose of pyconfig.h afterwards, as all information is in the module. This is definitely not the case: pyconfig.h continues to be required, as an include that is literally used when compiling extension modules.