summaryrefslogtreecommitdiffstats
path: root/Tools/wasm
Commit message (Collapse)AuthorAgeFilesLines
* gh-84461: Build Emscripten with WASM BigInt support (#94219)Christian Heimes2022-06-241-1/+3
|
* gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)Christian Heimes2022-06-241-0/+2
| | | | | - c_longlong and c_longdouble need experimental WASM bigint. - Skip tests that need threading - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
* gh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/ (#94070)Victor Stinner2022-06-221-12/+1
| | | | | | | | | | * Move Lib/tkinter/test/test_tkinter/ to Lib/test/test_tkinter/. * Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/. * Add Lib/test/test_ttk/__init__.py based on test_ttk_guionly.py. * Add Lib/test/test_tkinter/__init__.py * Remove old Lib/test/test_tk.py. * Remove old Lib/test/test_ttk_guionly.py. * Add __main__ sub-modules. * Update imports and update references to rename files.
* gh-93839: Move Lib/unttest/test/ to Lib/test/test_unittest/ (#94043)Victor Stinner2022-06-211-1/+0
| | | | | | | | * Move Lib/unittest/test/ to Lib/test/test_unittest/ * Remove Lib/test/test_unittest.py * Replace unittest.test with test.test_unittest * Remove unittest.load_tests() * Rewrite unittest __init__.py and __main__.py * Update build system, CODEOWNERS, and wasm_assets.py
* gh-93839: Move Lib/ctypes/test/ to Lib/test/test_ctypes/ (#94041)Victor Stinner2022-06-211-1/+0
| | | | | * Move Lib/ctypes/test/ to Lib/test/test_ctypes/ * Remove Lib/test/test_ctypes.py * Update imports and build system.
* gh-84461: Fix Emscripten umask and permission issues (GH-94002)Christian Heimes2022-06-191-0/+7
| | | | | | | | - Emscripten's default umask is too strict, see https://github.com/emscripten-core/emscripten/issues/17269 - getuid/getgid and geteuid/getegid are stubs that always return 0 (root). Disable effective uid/gid syscalls and fix tests that use chmod() current user. - Cannot drop X bit from directory.
* gh-84461: Fix pydebug Emscripten browser builds (GH-93982)Christian Heimes2022-06-181-12/+24
| | | | wasm_assets script did not take the ABIFLAG flag of sysconfigdata into account.
* gh-84461: Document how to install SDKs manually (GH-93844)Christian Heimes2022-06-151-0/+78
| | | Co-authored-by: Brett Cannon <brett@python.org>
* gh-84461: Emscripten's faccessat() does not accept flags (GHß92353)Christian Heimes2022-06-071-0/+3
|
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)Christian Heimes2022-06-061-0/+5
| | | WASI does not have the ``chmod(2)`` syscall yet.
* gh-90473: WASI requires proper open(2) flags (GH-93529)Christian Heimes2022-06-061-0/+3
|
* gh-90473: Skip and document more failing tests on WASI (GH-93436)Christian Heimes2022-06-022-1/+14
| | | | | | | - Mark more ``umask()`` cases - ``dup()`` is not supported - ``/dev/null`` is not available - document missing features - mark more modules as not available
* gh-90473: Misc test fixes for WASI (GH-93218)Christian Heimes2022-05-251-1/+5
| | | | | | | | * ``sys.executable`` is not set * WASI does not support subprocess * ``pwd`` module is not available * WASI checks ``open`` syscall flags more strict, needs r, w, rw flag. * ``umask`` is not available * ``/dev/null`` may not be accessible
* gh-90473: WASI: skip gethostname tests (GH-93092)Christian Heimes2022-05-231-0/+1
| | | | | | - WASI's ``gethostname()`` is a stub that always fails with OSError ``ENOTSUP`` - skip mailcap ``test`` if subprocess is not available - WASI process_time clock does not work.
* gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803)Christian Heimes2022-05-192-2/+40
|
* gh-84461: Add --enable-wasm-pthreads and more file systems (GH-91820)Christian Heimes2022-04-231-10/+15
|
* gh-84461: Add sys._emscripten_info, improve docs and build (gh-91781)Christian Heimes2022-04-231-11/+54
|
* bpo-40280: WASM docs and smaller browser builds (GH-32412)Christian Heimes2022-04-104-52/+226
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-40280: Add limited Emscripten REPL (GH-32284)Christian Heimes2022-04-054-15/+415
| | | Co-authored-by: Katie Bell <katie@katharos.id.au>
* bpo-40280: Add --enable-wasm-dynamic-linking (GH-32253)Christian Heimes2022-04-042-16/+11
|
* bpo-40280: Enable most file-at() and nanosleep APIs again (GH-32238)Christian Heimes2022-04-021-16/+2
|
* bpo-32033: Finalize WASI configure options (GH-32053)Christian Heimes2022-03-221-2/+4
|
* bpo-40280: Skip more tests on Emscripten (GH-31947)Christian Heimes2022-03-171-0/+3
| | | | | | - lchmod, lchown are not fully implemented - skip umask tests - cannot fstat unlinked or renamed files yet - ignore musl libc issues that affect Emscripten
* bpo-40280: Disable AF_UNIX, AF_PACKET, SO_REUSE* on Emscripten (#31829)Christian Heimes2022-03-111-2/+4
| | | Emscripten's socket emulation is limited. AF_UNIX, AF_PACKET, setsockopt(), and most SO_* constants are not supported.
* bpo-40280: Skip more tests/features that don't apply to Emscripten (GH-31791)Christian Heimes2022-03-101-5/+1
| | | | | | | - fd inheritance can't be modified because Emscripten doesn't support subprocesses anyway. - setpriority always fails - geteuid no longer causes problems with latest emsdk - umask is a stub - geteuid / getuid always return 0, but process cannot chown to random uid.
* bpo-40280: Block more non-working syscalls in Emscripten (GH-31757)Christian Heimes2022-03-081-1/+12
| | | | | | | | | - getgroups always fails. - geteuid and getegid always return 0 (root), which confuse tarfile and tests. - hardlinks (link, linkat) always fails. - non-encodable file names are not supported by NODERAWFS layer. - mark more tests with dependency on subprocess and multiprocessing. Mocking does not work if the module fails to import.
* bpo-40280: Address more test failures on Emscripten (GH-31050)Christian Heimes2022-02-052-23/+109
| | | Co-authored-by: Brett Cannon <brett@python.org>
* bpo-40280: Get help() working and more (GH-30858)Christian Heimes2022-01-241-1/+5
|
* bpo-40280: Misc fixes for wasm32-emscripten (GH-30722)Christian Heimes2022-01-201-0/+2
|
* bpo-40280: Block more syscalls that are causing crashes in tests (GH-30601)Christian Heimes2022-01-141-3/+9
|
* bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)Christian Heimes2022-01-131-0/+17
|
* bpo-40280: Add --with-emscripten-target to build for browser or node (GH-30552)Christian Heimes2022-01-122-1/+22
| | | Co-authored-by: Ethan Smith <ethan@ethanhs.me>
* bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494)Ethan Smith2022-01-091-1/+1
| | | Co-authored-by: nick.pope@infogrid.io
* bpo-40280: Add Tools/wasm with helpers for cross building (GH-29984)Christian Heimes2021-12-183-0/+299
Co-authored-by: Ethan Smith <ethan@ethanhs.me> Co-authored-by: Brett Cannon <brett@python.org>