cosmopolitan/third_party/python/Lib
Gautham 49db877fbe
Minimize Python startup imports (#292)
* get_exports_list should return list
* remove unintentional `CC=clang` in makefile
* avoid importing sysconfig during startup

site.py requires only a couple of functions from sysconfig, but needs to
load the entirety of sysconfig to get those functions. This commit
makes it such that sysconfig is imported only when sys.platform is darwin.

* remove redundant constants from stat module

The constants are only there in case the C implementation (ie the _stat
module) is not available. With Cosmopolitan the _stat module is always
available. The entire Lib/stat.py file can be removed if the Windows-based
constants can be moved into the Modules/_stat.c.

* minimal changes to os.py

python checks os-based assumptions at startup, some of  which can be
bypassed since this is Cosmopolitan Python.
2021-10-25 14:04:04 -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 Improve Python tree-shaking 2021-09-06 19:24:10 -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 Make numerous improvements 2021-09-28 01:52:34 -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 Minimize Python startup imports (#292) 2021-10-25 14:04:04 -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 Make numerous improvements 2021-09-28 01:52:34 -07:00
urllib Improve Python tree-shaking 2021-09-06 19:24:10 -07:00
venv python-3.6.zip added from Github 2021-08-09 05:39:42 -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 numerous improvements 2021-09-28 01:52:34 -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 python-3.6.zip added from Github 2021-08-09 05:39:42 -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 python-3.6.zip added from Github 2021-08-09 05:39:42 -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 Make numerous improvements 2021-09-28 01:52:34 -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 Improve Python tree-shaking 2021-09-06 19:24:10 -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 Minimize Python startup imports (#292) 2021-10-25 14:04:04 -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 Begin incorporating Python unit tests into build 2021-09-12 21:04:44 -07: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 Minimize Python startup imports (#292) 2021-10-25 14:04:04 -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