cosmopolitan/third_party/python/Lib
Justine Tunney cf93ecbbb2 Prove that Makefile is fully defined
The whole repository is now buildable with GNU Make Landlock sandboxing.
This proves that no Makefile targets exist which touch files other than
their declared prerequisites. In order to do this, we had to:

  1. Stop code morphing GCC output in package.com and instead run a
     newly introduced FIXUPOBJ.COM command after GCC invocations.

  2. Disable all the crumby Python unit tests that do things like create
     files in the current directory, or rename() files between folders.
     This ended up being a lot of tests, but most of them are still ok.

  3. Introduce an .UNSANDBOXED variable to GNU Make to disable Landlock.
     We currently only do this for things like `make tags`.

  4. This change deletes some GNU Make code that was preventing the
     execve() optimization from working. This means it should no longer
     be necessary in most cases for command invocations to be indirected
     through the cocmd interpreter.

  5. Missing dependencies had to be declared in certain places, in cases
     where they couldn't be automatically determined by MKDEPS.COM

  6. The libcxx header situation has finally been tamed. One of the
     things that makes this difficult is MKDEPS.COM only wants to
     consider the first 64kb of a file, in order to go fast. But libcxx
     likes to have #include lines buried after huge documentation.

  7. An .UNVEIL variable has been introduced to GNU Make just in case
     we ever wish to explicitly specify additional things that need to
     be whitelisted which aren't strictly prerequisites. This works in
     a manner similar to the recently introduced .EXTRA_PREREQS feature.

There's now a new build/bootstrap/make.com prebuilt binary available. It
should no longer be possible to write invalid Makefile code.
2022-08-06 04:05:08 -07:00
..
asyncio python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
collections Make numerous improvements 2021-09-28 01:52:34 -07:00
concurrent python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
ctypes Fix Pyston speedups (#281) 2021-10-02 01:28:51 -07:00
curses python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
dbm python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
distutils Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
email Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
encodings Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
html python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
http Make numerous improvements 2021-09-28 01:52:34 -07:00
idlelib Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
importlib Add sys.meta_path entry for APE zip store (#425) 2022-06-26 05:51:00 -07:00
json Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
lib2to3 Undiamond Python headers 2021-08-12 14:07:40 -07:00
logging Minimize Python startup imports (#292) 2021-10-25 14:04:04 -07:00
msilib python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
multiprocessing Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
pydoc_data Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
site-packages python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sqlite3 Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
test Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
tkinter python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
turtledemo python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
unittest Add Python JSON tests (#407) 2022-05-13 13:02:15 -07:00
urllib Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
venv Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
wsgiref python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
xml Make numerous improvements 2021-09-28 01:52:34 -07:00
xmlrpc python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
.zip.o Make numerous improvements 2021-09-28 01:52:34 -07:00
__future__.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
__phello__.foo.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_bootlocale.py Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
_collections_abc.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_compat_pickle.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_compression.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_dummy_thread.py Source changes for compilation 2021-08-09 05:39:42 -07:00
_markupbase.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_osx_support.py Undiamond Python headers 2021-08-12 14:07:40 -07:00
_pydecimal.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
_pyio.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
_sitebuiltins.py Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
_strptime.py Make numerous improvements 2021-09-28 01:52:34 -07:00
_sysconfigdata_m_cosmo_x86_64_cosmo.py Make improvements 2022-04-28 09:57:07 -07:00
_threading_local.py Source changes for compilation 2021-08-09 05:39:42 -07:00
_weakrefset.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
abc.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
aifc.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
antigravity.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
argparse.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
ast.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
asynchat.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
asyncore.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
base64.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
bdb.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
binhex.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
bisect.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
bz2.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
calendar.py Make numerous improvements 2021-09-28 01:52:34 -07:00
cgi.py Make numerous improvements 2021-09-28 01:52:34 -07:00
cgitb.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
chunk.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
cmd.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
code.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
codecs.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
codeop.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
colorsys.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
compileall.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
configparser.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
contextlib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
copy.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
copyreg.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
cProfile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
crypt.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
csv.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
datetime.py Make numerous improvements 2021-09-28 01:52:34 -07:00
decimal.py Make numerous improvements 2021-09-28 01:52:34 -07:00
difflib.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
dis.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
doctest.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
dummy_threading.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
enum.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
filecmp.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
fileinput.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
fnmatch.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
formatter.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
fractions.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
ftplib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
functools.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
genericpath.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
getopt.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
getpass.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
gettext.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
glob.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
gzip.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
hashlib.py Make numerous improvements 2021-09-28 01:52:34 -07:00
heapq.py Make numerous improvements 2021-09-28 01:52:34 -07:00
hmac.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
imaplib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
imghdr.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
imp.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
inspect.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
io.py Add sys.meta_path entry for APE zip store (#425) 2022-06-26 05:51:00 -07:00
ipaddress.py Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
keyword.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
launchpy.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
linecache.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
locale.py Source changes for compilation 2021-08-09 05:39:42 -07:00
lzma.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
macpath.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
macurl2path.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
mailbox.py Add fixes to previous commit 2022-05-13 05:05:27 -07:00
mailcap.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
mime.types Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
mimetypes.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
modulefinder.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
netrc.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
nntplib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
ntpath.py Add sys.meta_path entry for APE zip store (#425) 2022-06-26 05:51:00 -07:00
nturl2path.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
numbers.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
opcode.py Python 3.7 METH_FASTCALL backport (#406) 2022-05-13 05:05:12 -07:00
operator.py Make numerous improvements 2021-09-28 01:52:34 -07:00
optparse.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
os.py os.realname variable for correct USER_SITE value (#410) 2022-05-20 08:17:10 -07:00
pathlib.py Minimize Python startup imports (#292) 2021-10-25 14:04:04 -07:00
pdb.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pickle.py Backporting METH_FASTCALL from Python 3.7 (#317) 2021-11-12 15:26:57 -08:00
pickletools.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
pipes.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pkgutil.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
platform.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
plistlib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
poplib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
posixpath.py Make numerous improvements 2021-09-28 01:52:34 -07:00
pprint.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
profile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pstats.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pty.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
py_compile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pyclbr.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pydoc.py Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
queue.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
quopri.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
random.py Make numerous improvements 2021-09-28 01:52:34 -07:00
re.py Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
reprlib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
rlcompleter.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
runpy.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sched.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
secrets.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
selectors.py Make numerous improvements 2021-09-28 01:52:34 -07:00
shelve.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
shlex.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
shutil.py Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
signal.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
site.py os.realname variable for correct USER_SITE value (#410) 2022-05-20 08:17:10 -07:00
smtpd.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
smtplib.py Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
sndhdr.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
socket.py Make numerous improvements 2021-09-28 01:52:34 -07:00
socketserver.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sre_compile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sre_constants.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
sre_parse.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
ssl.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
stat.py Minimize Python startup imports (#292) 2021-10-25 14:04:04 -07:00
statistics.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
string.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
stringprep.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
struct.py Make numerous improvements 2021-09-28 01:52:34 -07:00
subprocess.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
sunau.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
symbol.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
symtable.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
sysconfig.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
tabnanny.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
tarfile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
telnetlib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
tempfile.py Make numerous improvements 2021-09-28 01:52:34 -07:00
textwrap.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
this.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
threading.py Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
timeit.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
token.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
tokenize.py Make numerous improvements 2021-09-28 01:52:34 -07:00
trace.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
traceback.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
tracemalloc.py Make numerous improvements 2021-09-28 01:52:34 -07:00
tty.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
turtle.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
types.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
typing.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
uu.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
uuid.py Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
warnings.py Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07:00
wave.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
weakref.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
webbrowser.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
xdrlib.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
zipapp.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
zipfile.py python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00