1DOLLY 72PACKAGE python3REQUIRES HOST runtime@04REQUIRES HOST dso@05REQUIRES HOST http@06REQUIRES HOST sockets@07REQUIRES HOST threads@089FROM /v0.1.7/Dollyfile-system 53019922324696a18a573eededf9b475fe22e783d58f35585fe5c73943b926ae10USE /v0.1.7/Dollyfile-libdolly-sockets c6b3e098f7bd988e69bdfdda8306af2e6c565b0e7abcdb9bda5dba2a48a2bfa911USE /v0.1.7/demos/tools/Dollyfile-sqlite 5b8b1bb1caebf8119a4c2c11bc897db30dcde77936ee7a31d4f1634df20f9e3512USE /v0.1.7/demos/tools/Dollyfile-bzip2 4c4c113645923d9d2d872ace619529a96c5f168d094a47afa7a1f792993dfb1413USE /v0.1.7/demos/tools/Dollyfile-xz d07bf61b88901661d5f75bc5000003f0df152c88dad282c46e57bd55f3a5adbb1415REQUIRES HEADER curl16REQUIRES HEADER libc17REQUIRES HEADER runtime18REQUIRES HEADER zlib19REQUIRES HEADER sqlite320REQUIRES HEADER bzlib21REQUIRES HEADER lzma22REQUIRES LIB curl23REQUIRES LIB z24REQUIRES LIB sqlite325REQUIRES LIB bz226REQUIRES LIB lzma27REQUIRES TOOL ar28REQUIRES TOOL cc29REQUIRES TOOL c++30REQUIRES TOOL cp31REQUIRES TOOL make32REQUIRES TOOL mkdir33REQUIRES TOOL mv34REQUIRES TOOL rm35REQUIRES TOOL tar36REQUIRES TOOL test37REQUIRES TOOL touch3839INSTALL /v0.1.7/demos/python/Dollyfile-libffi 249d61ea3501e8bc465e6457194353bb773fef2bc59731ef3b22fc7e1781b8c440EXPORTS LIB ffi /usr/lib/libffi.a41EXPORTS HEADER /usr/include/ffi.h42EXPORTS HEADER /usr/include/ffitarget.h43FILE /usr/share/licenses/libffi/LICENSE4445FILE /usr/share/licenses/sqlite/blessing46FILE /usr/share/licenses/bzip2/LICENSE47FILE /usr/share/licenses/xz/COPYING48FILE /usr/share/licenses/xz/COPYING.0BSD49REQUIRES HEADER ffi50REQUIRES HEADER ffitarget51REQUIRES LIB ffi52REQUIRES TOOL gzip53545556EXPORTS ENV PYTHONDONTWRITEBYTECODE 15758596061SOURCE /v0.1.7/dist/static/python/cpython.tar.gz 234e15e2b4a022716a70de30905088f0a9375e6983f435e36bd9b88cd15a03e6 /tmp/cpython.tar.gz6263SLOP gzip -dc /tmp/cpython.tar.gz | tar -xf - -C /6465SOURCE /v0.1.7/dist/static/python/runtimes/cpython-platform.c 20c5c120f835ce94ceb9be08cc25c4623ae333d844b2d3c3098ffed36f3b41eb /usr/src/python/Python/dolly_platform.c66SOURCE /v0.1.7/dist/static/python/runtimes/cpython-extension-check.c 1763ec04e582beee6066af81c93fe20e8cf0d83ae7d41d935b395c5cb3cdf071 /usr/src/python/Modules/dolly_extension_check.c67SOURCE /v0.1.7/dist/static/python/runtimes/cpython-socket-stubs.c 2aebdbdf3722dfa79f7b7eeb178b4beae2894a3d35ef12501054fb667342b335 /usr/src/python/Modules/dolly_socket_stubs.c68SOURCE /v0.1.7/dist/static/python/runtimes/cpython-http.c 13610f3322a4d09aa558e5d31523a082303835bf7c5981557c09443562cdc2da /usr/src/python/Modules/dolly_http.c69SOURCE /v0.1.7/dist/static/python/runtimes/cpython-transport.py 4567a855ff8459f6671c770dd69d93c84870bef3acd272f11ca28a394c9be92d /usr/src/python/Lib/_dolly_transport.py70SOURCE /v0.1.7/dist/static/python/runtimes/cpython-process.c 354dd7a01f1d16276d8478fdcb41bcb07da3078d6860ba52b423e059a32dd389 /usr/src/python/Modules/dolly_process.c71SOURCE /v0.1.7/dist/static/python/runtimes/cpython-subprocess.py cabc2b4eb15e61332c2b63454724c3b390c5f2a2f0effa2889861e123835b785 /usr/src/python/Lib/_dolly_subprocess.py727374757677SLOP CWD /usr/src/python cc \78 -c \79 -O0 \80 -std=c11 \81 -fno-builtin \82 -fno-strict-aliasing \83 -IInclude/internal \84 -IInclude/internal/mimalloc \85 -IObjects \86 -IInclude \87 -IPython \88 -I. \89 -DPy_BUILD_CORE \90 Python/tracemalloc.c \91 -o Python/tracemalloc.o92SLOP CWD /usr/src/python cc \93 -c \94 -O0 \95 -std=c11 \96 -fno-builtin \97 -fno-strict-aliasing \98 -IInclude/internal \99 -IInclude/internal/mimalloc \100 -IObjects \101 -IInclude \102 -IPython \103 -I. \104 -DPy_BUILD_CORE \105 Modules/arraymodule.c \106 -o Modules/arraymodule.o107SLOP CWD /usr/src/python cc \108 -c \109 -O0 \110 -std=c11 \111 -IInclude/internal \112 -IInclude/internal/mimalloc \113 -IObjects \114 -IInclude \115 -IPython \116 -I. \117 -DPy_BUILD_CORE \118 Python/dolly_platform.c \119 -o Python/dolly_platform.o120SLOP CWD /usr/src/python cc \121 -c \122 -O0 \123 -std=c11 \124 -IInclude/internal \125 -IInclude/internal/mimalloc \126 -IObjects \127 -IInclude \128 -IPython \129 -I. \130 -DPy_BUILD_CORE \131 -DDATE='"Jan 01 1970"' \132 -DTIME='"00:00:00"' \133 Modules/getbuildinfo.c \134 -o Modules/getbuildinfo.o135SLOP CWD /usr/src/python cc \136 -c \137 -O0 \138 -std=c11 \139 -IInclude/internal \140 -IInclude/internal/mimalloc \141 -IObjects \142 -IInclude \143 -IPython \144 -I. \145 -DPy_BUILD_CORE \146 -DPLATFORM='"dolly"' \147 Python/getplatform.c \148 -o Python/getplatform.o149SLOP CWD /usr/src/python cc \150 -c \151 -O0 \152 -std=c11 \153 -IInclude/internal \154 -IInclude/internal/mimalloc \155 -IObjects \156 -IInclude \157 -IPython \158 -I. \159 -DPy_BUILD_CORE \160 -DABIFLAGS='""' \161 -DMULTIARCH='"dolly_0_wasm64"' \162 Python/sysmodule.c \163 -o Python/sysmodule.o164SLOP CWD /usr/src/python cc \165 -c \166 -O0 \167 -std=c17 \168 Modules/dolly_socket_stubs.c \169 -o Modules/dolly_socket_stubs.o170SLOP CWD /usr/src/python make \171 -o configure \172 -o config.status \173 -o Makefile.pre \174 -o Makefile \175 -o Modules/config.c \176 -o Modules/getbuildinfo.o \177 -o Python/getplatform.o \178 -o Python/sysmodule.o \179 -o Python/tracemalloc.o \180 -o Modules/arraymodule.o \181 python \182 libpython3.14.a \183 SHELL=/bin/slop \184 CC=cc \185 LINKCC=cc \186 AR=ar \187 BLDSHARED=cc\ -shared \188 INSTSONAME=libpython3.14.a \189 DYNLOADFILE=dynload_shlib.o \190 PY_CFLAGS=-O2\ -std=c11\ -fno-builtin\ -fno-strict-aliasing\ -pthread \191 PY_CFLAGS_NODIST= \192 PY_CPPFLAGS=-IInclude/internal\ -IInclude/internal/mimalloc\ -IObjects\ -IInclude\ -IPython\ -I. \193 CFLAGSFORSHARED= \194 PY_CORE_LDFLAGS=-pthread \195 LDFLAGS= \196 LINKFORSHARED=-rdynamic \197 MODULE_MATH_LDFLAGS= \198 MODULE_CMATH_LDFLAGS= \199 MODULE__STATISTICS_LDFLAGS= \200 MODULE__DATETIME_LDFLAGS= \201 MODULE_PYEXPAT_LDFLAGS=Modules/expat/libexpat.a \202 MODULE__SOCKET_CFLAGS=-Dfreeaddrinfo=dolly_py_freeaddrinfo\ -Dgai_strerror=dolly_py_gai_strerror\ -Dgetaddrinfo=dolly_py_getaddrinfo\ -Dgethostbyaddr=dolly_py_gethostbyaddr\ -Dgethostname=dolly_py_gethostname\ -Dgetnameinfo=dolly_py_getnameinfo\ -Dgetprotobyname=dolly_py_getprotobyname\ -Dgetservbyport=dolly_py_getservbyport\ -Dhtonl=dolly_py_htonl\ -Dif_freenameindex=dolly_py_if_freenameindex\ -Dif_indextoname=dolly_py_if_indextoname\ -Dif_nameindex=dolly_py_if_nameindex\ -Dif_nametoindex=dolly_py_if_nametoindex\ -Dinet_aton=dolly_py_inet_aton\ -Dinet_ntop=dolly_py_inet_ntop\ -Dinet_pton=dolly_py_inet_pton\ -Dntohl=dolly_py_ntohl\ -Dpoll=dolly_py_poll \203 MODULE_BINASCII_CFLAGS=-DUSE_ZLIB_CRC32 \204 MODULE_BINASCII_LDFLAGS=-lz \205 MODULE_ZLIB_CFLAGS= \206 MODULE_ZLIB_LDFLAGS=-lz \207 MODULE__CTYPES_CFLAGS=-DHAVE_FFI_PREP_CIF_VAR\ -DHAVE_FFI_PREP_CLOSURE_LOC\ -DHAVE_FFI_CLOSURE_ALLOC \208 MODULE__CTYPES_LDFLAGS=-lffi \209 LIBS=-ldolly-sockets \210 SYSLIBS= \211 LIBM= \212 LIBC= \213 SHLIBS= \214 MACHDEP_OBJS=Python/dolly_platform.o\ Modules/dolly_socket_stubs.o \215 DTRACE=216217218219220221SLOP mkdir \222 -p \223 /usr/lib/python3.14 \224 /usr/lib/python3.14/lib-dynload225SLOP cp \226 -R \227 /usr/src/python/Lib/. \228 /usr/lib/python3.14229SLOP test \230 -f \231 /usr/lib/python3.14/encodings/__init__.py232SLOP cp \233 /usr/src/python/libpython3.14.a \234 /usr/lib/libpython3.14.a235SLOP mv \236 /usr/src/python/python \237 /usr/bin/python238SLOP ln -sf python /usr/bin/python3239SLOP mkdir \240 -p \241 /usr/include/python3.14242SLOP cp \243 -R \244 /usr/src/python/Include/. \245 /usr/include/python3.14246SLOP cp \247 /usr/src/python/pyconfig.h \248 /usr/include/python3.14/pyconfig.h249SLOP CWD /usr/src/python slop \250 -c \251 'export _PYTHON_PROJECT_BASE=/usr/src/python; python -m sysconfig --generate-posix-vars'252SLOP cp \253 /usr/src/python/build/lib.dolly_0-wasm64-3.14/_sysconfigdata__dolly_dolly_0_wasm64.py \254 /usr/lib/python3.14/_sysconfigdata__dolly_dolly_0_wasm64.py255SLOP mkdir \256 -p \257 /usr/lib/python3.14/config-3.14-dolly_0_wasm64258SLOP cp \259 /usr/src/python/Makefile \260 /usr/lib/python3.14/config-3.14-dolly_0_wasm64/Makefile261262263SLOP python -c 'import shlex, subprocess, sysconfig; flags = lambda name: shlex.split(sysconfig.get_config_var(name)); \264 subprocess.run(flags("CC") + flags("CFLAGS") + ["-I/usr/include/python3.14", "-c", "/usr/src/python/Modules/dolly_extension_check.c", "-o", "/tmp/dolly_extension_check.o"], check=True); \265 subprocess.run(flags("LDSHARED") + ["/tmp/dolly_extension_check.o", "-o", "/usr/lib/python3.14/lib-dynload/dolly_extension_check.cpython-314-dolly_0_wasm64.so"], check=True)'266267EXPORTS TOOL python268EXPORTS TOOL python3269EXPORTS ENV PYTHONUTF8 1270EXPORTS LIB python /usr/lib/libpython3.14.a271EXPORTS HEADER /usr/include/python3.14272273SLOP python \274 --version275SLOP python \276 -c 'import pathlib; p = pathlib.Path("/tmp/python-check.txt"); p.write_text("PYTHON-WASM64"); assert p.read_text() == "PYTHON-WASM64"'277SLOP python \278 -c 'import dolly_extension_check; assert dolly_extension_check.answer() == 42'279SLOP python \280 -c 'import mmap, pathlib; p = pathlib.Path("/tmp/mmap-check"); p.write_bytes(b"DOLLY"); f = p.open("rb"); m = mmap.mmap(f.fileno(), 5, access=mmap.ACCESS_READ); assert m[:] == b"DOLLY"; m.madvise(mmap.MADV_SEQUENTIAL); m.close(); f.close()'281SLOP python \282 -c 'import sysconfig; assert sysconfig.get_platform() == "dolly_0-wasm64"; assert sysconfig.get_config_var("EXT_SUFFIX") == ".cpython-314-dolly_0_wasm64.so"'283SLOP python \284 -c 'import os, subprocess; assert subprocess.check_output(["echo", "spawn-ok"], text=True).strip() == "spawn-ok"; assert subprocess.check_output(["python", "-c", "print(6 * 7)"], text=True).strip() == "42"; child_env = dict(os.environ, DOLLY_CHILD_ENV="explicit"); assert subprocess.check_output(["python", "-c", "import os; print(os.environ[\"DOLLY_CHILD_ENV\"])"] , env=child_env, text=True, timeout=1).strip() == "explicit"'285286287SLOP python \288 -c 'import threading; started, answered = threading.Event(), threading.Event(); worker = threading.Thread(target=lambda: (started.set(), answered.wait(60))); worker.start(); assert started.wait(60); answered.set(); worker.join(60); assert not worker.is_alive()'289SLOP python \290 -c 'import threading; from concurrent.futures import ThreadPoolExecutor; barrier = threading.Barrier(3); pool = ThreadPoolExecutor(3); assert sorted(item.result(60) for item in [pool.submit(barrier.wait, 60) for n in range(3)]) == [0, 1, 2]; pool.shutdown()'291SLOP python \292 -c 'import ctypes, threading; callback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)(lambda value: value + 1); seen = []; worker = threading.Thread(target=lambda: seen.extend([__import__("dolly_extension_check").answer(), callback(41)])); worker.start(); worker.join(); assert seen == [42, 42]'293SLOP python \294 -c 'import hashlib; assert hashlib.md5(b"abc", usedforsecurity=False).hexdigest() == "900150983cd24fb0d6963f7d28e17f72"'295SLOP python \296 -c 'import ctypes; libc = ctypes.CDLL(None); libc.strlen.argtypes = [ctypes.c_char_p]; libc.strlen.restype = ctypes.c_size_t; assert libc.strlen(b"dolly") == 5; callback_type = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int); callback = callback_type(lambda value: value + 1); assert callback(41) == 42'297SLOP python \298 -c 'import locale, sys; assert sys.flags.utf8_mode == 1; assert locale.getpreferredencoding(False).lower() == "utf-8"; assert sys.getfilesystemencoding().lower() == "utf-8"'299SLOP python \300 -c 'from pathlib import Path; p = Path("/tmp/python-header-check/check.cpp"); p.parent.mkdir(); p.write_text("#include <Python.h>\nint python_header_check = 42;\n", encoding="utf-8")'301SLOP c++ \302 -c \303 -std=c++17 \304 -I/usr/include/python3.14 \305 /tmp/python-header-check/check.cpp \306 -o /tmp/python-header-check/check.o307SLOP python \308 -c 'import os, sys, termios, tty; assert not os.isatty(0); assert sys.stdin.buffer.read(1) == b""'309310311SLOP python \312 -c 'from pathlib import Path; p = Path("/tmp/python-tls/tls.cpp"); p.parent.mkdir(); p.write_text("#include <string>\nstatic thread_local std::string name(\"dolly\");\nextern \"C\" int tls_length() { return int(name.size()); }\n", encoding="utf-8")'313SLOP c++ -shared /tmp/python-tls/tls.cpp -o /tmp/python-tls/tls.so314SLOP python -c 'import ctypes; assert ctypes.CDLL("/tmp/python-tls/tls.so").tls_length() == 5'315316FILE /usr/share/licenses/cpython/LICENSE317318FILE /usr/share/licenses/cpython/DOLLY-CHANGES319 Dolly's changes to CPython: cpython-dolly.patch ports posixmodule, getpath,320 faulthandler, subprocess, site, platform, sysconfig, uuid, ctypes.util and321 the pager to sys.platform "dolly", where processes use Dolly's spawn and322 wait and there is no fork. Built-in modules added by Dolly carry HTTP through the323 browser's broker (_dolly_http, _dolly_transport), fail name resolution324 and ssl explicitly, and run libffi over process-local calls. The patched source is325 published beside this image as dist/static/python/cpython.tar.gz.326EXPORTS FOLDER python-stdlib /usr/lib/python3.14327328SLOP rm \329 -rf \330 /tmp/cpython.tar.gz \331 /tmp/mmap-check \332 /tmp/python \333 /tmp/python-header-check \334 /tmp/python-check.txt \335 /usr/lib/python3.14/test \336 /usr/src/python337REQUIRES TOOL python338339340SLOP python \341 /usr/lib/python3.14/ensurepip/_bundled/pip-26.2.1-py3-none-any.whl/pip \342 install \343 --no-compile \344 --no-index \345 --disable-pip-version-check \346 --root-user-action=ignore \347 /usr/lib/python3.14/ensurepip/_bundled/pip-26.2.1-py3-none-any.whl348FOLDER /usr/lib/python3.14/site-packages349EXPORTS TOOL pip350EXPORTS TOOL pip3351352353354INSTALL /v0.1.7/Dollyfile-cc 99770d8693eaf1c5430782512d808e84fb33a172acb3fb0184234068f5bf4384355356357358359360FILE /etc/pip.conf361 [global]362 disable-pip-version-check = true363 root-user-action = ignore364365SLOP python \366 -c 'import urllib.request; assert urllib.request.HTTPHandler.__module__ == "_dolly_transport"'367SLOP pip \368 --version369FILE /usr/share/man/cat1/python3.1370 python3, python, pip: CPython and pip, with the cc package pip builds native371 packages with.372 373 python3 SCRIPT runs a script; python3 alone, the prompt374 pip install PACKAGE installs a wheel or builds an sdist375 376 An sdist with C code is compiled by cc. One built with Meson (NumPy,377 Pandas) needs Ninja too: amy install ninja. pip's settings are in378 /etc/pip.conf. urllib.request and requests send through the page's HTTP379 broker and its policy. sys.platform is "dolly"; Emscripten and Pyodide380 wheels do not fit it. Upstream's documentation: https://docs.python.org/3/381