Added build config to get python.com

Modules/Setup and Modules/Setup.local contain the build recipes for
various extensions, wrote a custom script to translate them for
python.mk. Modules/config.c needs to be changed if any extensions are
removed or added.

Most of the source modifications are for missing headers or compile time
build vars like ABIFLAGS.

Created separate mk files for the C extensions and the Python stdlib.
Can use find for adding the python files to the APE ZIP store, but right
now necessary files are just hardcoded.

python.com loads but some build configs are still missing (showing 1 Jan
1970 as time of compilation).
This commit is contained in:
ahgamut 2021-08-09 02:49:30 +05:30 committed by Justine Tunney
parent 5ef64dbcdb
commit 98f330b764
45 changed files with 2482 additions and 45 deletions

View file

@ -1,5 +1,6 @@
#include "Python.h"
#include "libc/sysv/consts/rlim.h"
#include <sys/resource.h>
#include <sys/time.h>
#include <string.h>