summaryrefslogtreecommitdiffstats
path: root/Tools/wasm
Commit message (Collapse)AuthorAgeFilesLines
* gh-126898: Emscripten support: Use es6 modules (#126903)Hood Chatham2024-11-213-26/+55
| | | | Modify Emscripten support to use ES6 modules.
* gh-126691: Remove --with-emscripten-target (#126787)Hood Chatham2024-11-162-8/+8
| | | | | This unifies the code for nodejs and the code for the browser. After this commit, the browser example doesn't work; this will be fixed in a subsequent update.
* gh-126187 Add emscripten.py script to automate emscripten build (#126190)Hood Chatham2024-11-092-136/+353
| | | | | Add emscripten.py script to automate emscripten build. This is modeled heavily on `Tools/wasm/wasi.py`. This will form the basis of an Emscripten build bot.
* GH-123877: default to `wasm32-wasip1` instead of `wasm32-wasi` to be more ↵Brett Cannon2024-11-071-1/+1
| | | | | | | | | specific (GH-126552) Eventually wasm32-wasi will represent WASI 1.0, and so it's currently deprecated so it can be used for that eventual purpose. wasm32-wasip1 is also more specific to what version of WASI is currently supported. --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-124928: Emscripten node support: Clean up old node <= 16 flags (#124929)Hood Chatham2024-10-291-0/+9
| | | | | | Clean up configure flags for old node versions These flags are only needed for node <= 16. Node 16 has been end of life since October of 2023.
* Remove some unused files related to WASM/WASI (GH-124635)Brett Cannon2024-09-263-57/+2
|
* GH-121634: have `wasi.py` accept the host target triple as an argument ↵Brett Cannon2024-08-151-6/+12
| | | | (GH-123030)
* GH-120371: Add WASI SDK 22 support (GH-121870)Brett Cannon2024-07-161-0/+8
| | | Required disabling stub functions now provided by wasi-libc.
* GH-121521: Detect when wasmtime is not installed in `Tools/wasm/wasi.py` ↵Brett Cannon2024-07-091-6/+18
| | | | (GH-121522)
* gh-120507: Double WASI memory (#120648)Victor Stinner2024-06-172-4/+3
| | | | Use 16 MiB stack with 40 MiB memory limit, instead of 8 MiB stack with 20 MiB memory limit.
* gh-97747: Improvements to WASM browser REPL. (#97665)Katie Bell2024-05-312-8/+69
| | | | | Improvements to WASM browser REPL. Adds a text box to write and run code outside the REPL, a stop button, and handling of Ctrl-D for EOF.
* Fix typos in comments (#119645)Xie Yanbo2024-05-281-1/+1
|
* Fix typo in Tools/wasm/README.md(#118358)Xie Yanbo2024-04-281-1/+1
|
* GH-116314: Update `Tools/wasm/README.md` to point to the devguide for ↵Brett Cannon2024-03-071-61/+3
| | | | building for WASI (GH-116445)
* GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 ↵Brett Cannon2024-03-052-4/+8
| | | | | | | | | primitives (#116327) * GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 primitives * Add the configure changes * Update `wasm_build.py`
* GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228)Brett Cannon2024-03-021-0/+9
| | | Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830).
* GH-113516: don't set `LDSHARED` when building for WASI (GH-115495)Brett Cannon2024-02-152-2/+1
|
* Update README.md (#114974)Skip Montanaro2024-02-041-1/+1
| | | | | Trivial edit Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* Fix `wasi.py build` after adding the `clean` subcommand. ({GH-114447)Brett Cannon2024-01-221-1/+2
|
* Add a `clean` subcommand to `Tools/wasm/wasi.py` (GH-114274)Brett Cannon2024-01-191-7/+24
|
* GH-114013: fix setting `HOSTRUNNER` for `Tools/wasm/wasi.py` (GH-114097)Brett Cannon2024-01-161-6/+5
| | | Also fix tests found failing under a pydebug build of WASI thanks to `make test` working due to this change.
* Clarify that WASI tool requirements are included in the devcontainer (GH-112561)Brett Cannon2023-11-301-8/+8
|
* GH-103065, GH-106704, GH-105253: Provide a `Tools/wasm/wasi.py` script to ↵Brett Cannon2023-11-303-76/+369
| | | | simplify doing a WASI build (GH-112473)
* gh-109649: Use os.process_cpu_count() (#110165)Victor Stinner2023-10-011-1/+5
| | | | | | | | | | | | | | | | | | | | Replace os.cpu_count() with os.process_cpu_count() in modules: * compileall * concurrent.futures * multiprocessing Replace os.cpu_count() with os.process_cpu_count() in programs: * _decimal deccheck.py test * freeze.py * multissltests.py * python -m test (regrtest) * wasm_build.py Other changes: * test.pythoninfo logs os.process_cpu_count(). * regrtest gets os.process_cpu_count() / os.cpu_count() in headers.
* Fix argument ordering of embuilder command documented in ↵OmniTroid2023-09-261-1/+1
| | | | `Tools/wasm/README.md` (GH-109863)
* gh-109125: Run mypy on `Tools/wasm` (#109126)Nikita Sobolev2023-09-194-38/+67
|
* Fix invocation of wasm_build.py for node (GH-109383)Sam Gross2023-09-131-1/+1
|
* wasm: do not use inline comment in .editorconfig (#106610)Eisuke Kawashima2023-07-111-1/+2
| | | | It is no longer valid since 0.15.0 https://github.com/editorconfig/specification/blob/v0.15/index.rst#no-inline-comments
* gh-101538: Add experimental wasi-threads build (#101537)YAMAMOTO Takashi2023-06-221-1/+7
| | | | Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-102404, GH-100956: Document how to do a WASI build (GH-105251)Brett Cannon2023-06-022-174/+190
| | | Also includes a reference shell script to implements what is documented.
* gh-104773: PEP 594: Remove the audioop module (#104937)Victor Stinner2023-05-252-2/+0
|
* gh-104773: PEP 594: Remove the aifc module (#104933)Victor Stinner2023-05-251-1/+1
| | | | * Remove .aifc and .aiff test files of Lib/test/audiodata/ * Remove Lib/test/Sine-1000Hz-300ms.aif test file
* gh-104773: PEP 594: Remove the uu module (#104932)Victor Stinner2023-05-251-2/+0
| | | | Doc/license.rst: Keep the UUencode and UUdecode license since it's also used by the uu codec.
* gh-104773: PEP 594: Remove the crypt module (#104908)Victor Stinner2023-05-252-2/+0
| | | | Remove the crypt module and its private _crypt extension, deprecated in Python 3.11.
* gh-104773: Remove the msilib package (GH-104911)Zachary Ware2023-05-251-1/+0
|
* gh-104773: PEP 594: Remove the xdrlib module (#104900)Victor Stinner2023-05-241-1/+0
| | | pickle documentation no longer mentions the XDR format.
* gh-104773: PEP 594: Remove the nis module (#104897)Victor Stinner2023-05-241-1/+0
|
* gh-104773: PEP 594: Remove the nntplib module (#104894)Victor Stinner2023-05-241-1/+0
| | | | | | | | * socket_helper.transient_internet() no longer imports nntplib to catch nntplib.NNTPTemporaryError. * ssltests.py no longer runs test_nntplib. * "make quicktest" no longer runs test_nntplib. * WASM: remove nntplib from OMIT_NETWORKING_FILES. * Remove mentions to nntplib in the email documentation.
* gh-104773: PEP 594: Remove the mailcap module (#104867)Victor Stinner2023-05-241-1/+0
| | | Remove Lib/test/mailcap.txt test file.
* gh-104773: PEP 594: Remove the sunau module (#104863)Victor Stinner2023-05-241-1/+1
| | | | * Remove Lib/test/audiodata/pluck-*.au files. * Remove Lib/test/audiotest.au file.
* gh-104773: PEP 594: Remove cgi and cgitb modules (#104775)Victor Stinner2023-05-241-2/+0
| | | | | * Replace "cgi" with "!cgi" in the Sphinx documentation to avoid warnings on broken references. * test_pyclbr no longer tests the cgi module.
* gh-104780: Remove 2to3 program and lib2to3 module (#104781)Victor Stinner2023-05-231-2/+0
| | | | | | | | | * Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal.
* gh-104773: PEP 594: Remove the telnetlib module (#104778)Victor Stinner2023-05-231-1/+0
|
* gh-103801: Tools/wasm linting and formatting (#103796)Daniel Versoza2023-04-242-3/+4
| | | | | | | | | | | | This PR makes three minor linting adjustments to the `wasm` module caught by [ruff](https://github.com/charliermarsh/ruff). <!-- gh-issue-number: gh-103801 --> * Issue: gh-103801 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* GH-102973: add a dev container (GH-102975)Brett Cannon2023-03-291-0/+1
| | | | | | On content update, builds `python` and the docs. Also adds a Dockerfile that should include everything but autoconf 2.69 that's necessary to build CPython and the entire stdlib on Fedora. Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Dusty Phillips <dusty@phillips.codes>
* gh-100340: Allows -Wno-int-conversion for wasm (#100341)Kushal Das2023-01-181-0/+3
| | | Fixes #100340 allows -Wno-int-conversion for wasm
* Fix typo and old link in wasm readme (#101096)Zac Hatfield-Dodds2023-01-181-2/+2
|
* Fix typo in Tools/wasm/README.md (GH-99384)Ikko Ashimine2022-11-111-1/+1
| | | | | Noticable -> Noticeable Automerge-Triggered-By: GH:AlexWaygood
* gh-72719: Remove asyncore and asynchat modules (#96580)Nikita Sobolev2022-11-081-2/+0
| | | | | Remove modules asyncore and asynchat, which were deprecated by PEP 594. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* gh-92584: Remove the distutils package (#99061)Victor Stinner2022-11-032-3/+2
| | | | | | | | | | | | Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils