cosmopolitan/third_party/python/Tools
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
..
ccbench python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
clinic python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
demo Undiamond Python headers 2021-08-12 14:07:40 -07:00
freeze Undiamond Python headers 2021-08-12 14:07:40 -07:00
gdb python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
i18n python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
importbench python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
iobench python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
parser python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
pybench Make numerous improvements 2021-09-28 01:52:34 -07:00
pynche python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
scripts Fix a few more Python tests 2021-08-16 23:47:47 -07:00
ssl python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
stringbench python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
test2to3 python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
tz Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
unicode Revert whitespace fixes to third_party (#501) 2022-07-21 21:46:07 -07:00
unittestgui python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00
README python-3.6.zip added from Github 2021-08-09 05:39:42 -07:00

This directory contains a number of Python programs that are useful
while building or extending Python.

buildbot        Batchfiles for running on Windows buildslaves.

ccbench         A Python threads-based concurrency benchmark. (*)

demo            Several Python programming demos.

freeze          Create a stand-alone executable from a Python program.

gdb             Python code to be run inside gdb, to make it easier to
                debug Python itself (by David Malcolm).

i18n            Tools for internationalization. pygettext.py
                parses Python source code and generates .pot files,
                and msgfmt.py generates a binary message catalog
                from a catalog in text format.

iobench         Benchmark for the new Python I/O system. (*)

msi             Support for packaging Python as an MSI package on Windows.

parser          Un-parsing tool to generate code from an AST.

pybench         Low-level benchmarking for the Python evaluation loop. (*)

pynche          A Tkinter-based color editor.

scripts         A number of useful single-file programs, e.g. tabnanny.py
                by Tim Peters, which checks for inconsistent mixing of
                tabs and spaces, and 2to3, which converts Python 2 code
                to Python 3 code.

stringbench     A suite of micro-benchmarks for various operations on
                strings (both 8-bit and unicode). (*)

test2to3        A demonstration of how to use 2to3 transparently in setup.py.

unicode         Tools for generating unicodedata and codecs from unicode.org
                and other mapping files (by Fredrik Lundh, Marc-Andre Lemburg
                and Martin von Loewis).

unittestgui     A Tkinter based GUI test runner for unittest, with test
                discovery.


(*) A generic benchmark suite is maintained separately at https://github.com/python/performance