cosmopolitan/third_party/python/Python
Justine Tunney ae5d06dc53 Unbloat build config
- 10.5% reduction of o//depend dependency graph
- 8.8% reduction in latency of make command
- Fix issue with temporary file cleanup

There's a new -w option in compile.com that turns off the recent
Landlock output path workaround for "good commands" which do not
unlink() the output file like GNU tooling does.

Our new GNU Make unveil sandboxing appears to have zero overhead
in the grand scheme of things. Full builds are pretty fast since
the only thing that's actually slowed us down is probably libcxx

    make -j16 MODE=rel
    RL: took 85,732,063µs wall time
    RL: ballooned to 323,612kb in size
    RL: needed 828,560,521µs cpu (11% kernel)
    RL: caused 39,080,670 page faults (99% memcpy)
    RL: 350,073 context switches (72% consensual)
    RL: performed 0 reads and 11,494,960 write i/o operations

pledge() and unveil() no longer consider ENOSYS to be an error.
These functions have also been added to Python's cosmo module.

This change also removes some WIN32 APIs and System Five magnums
which we're not using and it's doubtful anyone else would be too
2022-08-10 04:43:09 -07:00
..
clinic Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
_warnings.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
asdl.c Make whitespace changes 2021-08-13 03:20:45 -07:00
ast.c Make numerous improvements 2021-09-28 01:52:34 -07:00
atexit.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
bltinmodule.c Move importlib functions to within C () 2022-05-26 23:20:59 -07:00
ceval.c Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
ceval_gil.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
codecs.c Make numerous improvements 2021-09-28 01:52:34 -07:00
compile.c Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
condvar.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
cosmomodule.c Unbloat build config 2022-08-10 04:43:09 -07:00
dtoa.c Unbloat build config 2022-08-10 04:43:09 -07:00
dynamic_annotations.c Make whitespace changes 2021-08-13 03:20:45 -07:00
dynload_dl.c Make numerous improvements 2021-09-28 01:52:34 -07:00
dynload_shlib.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
dynload_stub.c Make whitespace changes 2021-08-13 03:20:45 -07:00
dynload_win.c Make numerous improvements 2021-09-28 01:52:34 -07:00
errors.c Unbloat build config 2022-08-10 04:43:09 -07:00
fatality.c Fix Python test_repl in MODE=dbg () 2022-05-28 05:50:42 -07:00
fdisinteractive.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
fileutils.c Unbloat build config 2022-08-10 04:43:09 -07:00
finalize.c Add sys.meta_path entry for APE zip store () 2022-06-26 05:51:00 -07:00
flags.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
flushstdfiles.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
formatter_unicode.c Make whitespace changes 2021-08-13 03:20:45 -07:00
frozen.c Revert "Make MODE=tiny not depend on default build" 2021-10-26 17:14:38 -07:00
frozenmain.c Make whitespace changes 2021-08-13 03:20:45 -07:00
frozenmodules.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
future.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getargs.c Revert whitespace fixes to third_party () 2022-07-21 21:46:07 -07:00
getcompiler.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getcopyright.c Improve locks and signals 2022-04-12 05:20:17 -07:00
getopt.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getplatform.c Make numerous improvements 2021-09-28 01:52:34 -07:00
getsig.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
getversion.c Make whitespace changes 2021-08-13 03:20:45 -07:00
graminit.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
import.c Unbloat build config 2022-08-10 04:43:09 -07:00
importdl.c Make whitespace changes 2021-08-13 03:20:45 -07:00
importdl.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
initfsencoding.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
initialized.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
initimport.c Revert whitespace fixes to third_party () 2022-07-21 21:46:07 -07:00
initmain.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
initsigs.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
initsite.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
initstdio.c Make numerous improvements 2021-09-28 01:52:34 -07:00
inittab.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
makeopcodetargets.py Perform build and magnum tuning 2021-08-10 10:26:13 -07:00
marshal.c Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
modsupport.c Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
mysnprintf.c Make numerous improvements 2021-09-28 01:52:34 -07:00
mystrtoul.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
opcode_targets.inc Python 3.7 METH_FASTCALL backport () 2022-05-13 05:05:12 -07:00
peephole.c Make numerous improvements 2021-09-28 01:52:34 -07:00
progname.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
pyarena.c Make whitespace changes 2021-08-13 03:20:45 -07:00
pyfpe.c Make whitespace changes 2021-08-13 03:20:45 -07:00
pyhash.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
pylifecycle.c Add sys.meta_path entry for APE zip store () 2022-06-26 05:51:00 -07:00
pymath.c Make whitespace changes 2021-08-13 03:20:45 -07:00
pystate.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
pystrcmp.c Make whitespace changes 2021-08-13 03:20:45 -07:00
pystrhex.c Make whitespace changes 2021-08-13 03:20:45 -07:00
pystrtod.c Make whitespace changes 2021-08-13 03:20:45 -07:00
Python-ast.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
pythonhome.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
pythonrun.c Change the default command prompts 2022-04-06 06:56:11 -07:00
pytime.c Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
random.c Revert whitespace fixes to third_party () 2022-07-21 21:46:07 -07:00
recursive.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
restoresigs.c Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
sigcheck.c Make whitespace changes 2021-08-13 03:20:45 -07:00
structmember.c Make whitespace changes 2021-08-13 03:20:45 -07:00
symtable.c Make whitespace changes 2021-08-13 03:20:45 -07:00
sysmodule.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
thread.c Make numerous improvements 2021-09-28 01:52:34 -07:00
thread_foobar.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
thread_nt.inc Undiamond Python headers 2021-08-12 14:07:40 -07:00
thread_pthread.inc Make numerous improvements 2021-09-28 01:52:34 -07:00
traceback.c Make whitespace changes 2021-08-13 03:20:45 -07:00
wordcode_helpers.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
xedmodule.c Improve signals and memory protection 2022-04-12 22:11:00 -07:00
xtermmodule.c Apply fixes and speedups 2021-10-04 03:23:31 -07:00