cosmopolitan/third_party/python/Modules
Justine Tunney 559b024e1d Decentralize Python native module linkage
We can now link even smaller Python binaries. For example, the hello.com
program in the Python build directory is a compiled linked executable of
hello.py which just prints hello world. Using decentralized sections, we
can make that binary 1.9mb in size (noting that python.com is 6.3 megs!)

This works for nontrivial programs too. For example, say we want an APE
binary that's equivalent to python.com -m http.server. Our makefile now
builds such a binary using the new launcher and it's only 3.2mb in size
since Python sources get turned into ELF objects, which tell our linker
that we need things like native hashing algorithm code.
2021-09-07 11:40:11 -07:00
..
_decimal Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_io Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_multiprocessing Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_sqlite Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
cjkcodecs Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
clinic Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
expat Improve system call support 2021-08-25 21:36:17 -07:00
_asynciomodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_bisectmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_bz2module.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_codecsmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_collectionsmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_cryptmodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_csv.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_datetimemodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_dbmmodule.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
_elementtree.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_functoolsmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_gdbmmodule.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
_hashmbedtls.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_heapqmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_json.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_localemodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_lsprof.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_lzmamodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_math.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_math.h Get more Python tests passing (#141) 2021-08-16 15:26:31 -07:00
_opcode.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_operator.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_pickle.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_posixsubprocess.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_randommodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_sha3.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_sre.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_ssl_data.inc Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_stat.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_struct.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_testbuffer.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_testcapimodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_testmultiphase.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_threadmodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
_tracemalloc.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_weakref.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
_winapi.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
arraymodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
atexitmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
audioop.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
binascii.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
cmathmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
config.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
config.c.in Undiamond Python headers 2021-08-12 14:07:40 -07:00
errnomodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
faulthandler.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
fcntlmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
fpectlmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
fpetestmodule.c Make whitespace changes 2021-08-13 03:20:45 -07:00
fspath.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
gcmodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
getbuildinfo.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
getpath.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
grpmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
hashlib.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
hashtable.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
hashtable.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
itertoolsmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
main.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
mathmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
md5module.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
mmapmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
ossaudiodev.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
overlapped.c Make whitespace changes 2021-08-13 03:20:45 -07:00
parsermodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
posixmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
posixmodule.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
pwdmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
pyexpat.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
README python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
resource.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
rotatingtree.c Make whitespace changes 2021-08-13 03:20:45 -07:00
rotatingtree.h Perform build and magnum tuning 2021-08-10 10:26:13 -07:00
selectmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
sha1module.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
sha256module.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
sha512module.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
signalmodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
socketmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
socketmodule.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
spwdmodule.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
sre.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
sre_constants.h python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sre_lib.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
symtablemodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
syslogmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
termios.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
testcapi_long.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
timemodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
tkinter.h Undiamond Python headers 2021-08-12 14:07:40 -07:00
unicodedata.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
unicodedata_db.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
unicodename_db.inc Make whitespace changes 2021-08-13 03:20:45 -07:00
winreparse.h Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
xxlimited.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
xxmodule.c Implement tree-shaking for Python sources 2021-09-05 01:20:03 -07:00
xxsubtype.c Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
zipimport.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
zlibmodule.c Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.