[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28029 pull_request: https://github.com/python/cpython/pull/29794 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Roman Yurchak
Roman Yurchak added the comment: Thanks a lot for working on this! > _sys_shutdown is the syscall for shutdown(2) used by the socket module. Yes, the issue with Emscripten is that a number of system calls are either not implemented or implemented but not tested. See a list we are using in h

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Roman Yurchak
Change by Roman Yurchak : -- nosy: +Roman Yurchak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +Cross compiling on Linux is untested, undocumented, and broken, Fix Program/_freeze_module for cross compiling Python, Undefinied _Py_Sigset_Converter function when HAVE_SIGSET_T not set, ctypes cfield.c defines duplicate ffi_type_* symb

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28025 pull_request: https://github.com/python/cpython/pull/29789 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset ee1e2c604c8a66a407116d9c3e589ab0b9580c54 by Christian Heimes in branch 'main': bpo-40280: Use Setup.stdlib static for wasm builds (GH-29784) https://github.com/python/cpython/commit/ee1e2c604c8a66a407116d9c3e589ab0b9580c54 -- __

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: https://github.com/emscripten-core/emscripten/issues/13393 -- ___ Python tracker ___ ___ Python

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: I have uploaded my config.site override to https://gist.github.com/tiran/5ccffa28723d3e4739db848451bd9efa . It contains overrides based on pyodide and overrides for new features. I'm also getting this error with emscripten 2.0.13. _sys_shutdown is the sys

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28021 pull_request: https://github.com/python/cpython/pull/29784 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset 1052a39b7603e4d8401a5987af0c36f4a1d0b1e4 by Christian Heimes in branch 'main': bpo-40280: Add wasm cross build targets (GH-29771) https://github.com/python/cpython/commit/1052a39b7603e4d8401a5987af0c36f4a1d0b1e4 -- _

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: Our config.sub agrees with LLVM: $ ./config.sub wasm32-wasi wasm32-unknown-wasi The config.sub and config.guess scripts in main are recent enough for wasm. Just to be sure I created https://github.com/python/cpython/pull/29781 and plan to backport the cha

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: To help keep links up-to-date, Pyodide now lives at: https://github.com/pyodide/pyodide/tree/main/cpython -- ___ Python tracker ___ __

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: Do we need to care about our `config.guess` being updated as well? This is a totally ignorant question based on https://github.com/WebAssembly/wasi-sdk#notes-for-autoconf mentioning `config.guess`. -- ___ Python tr

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: My last message had a couple of typos; should have been `wasm32-wasi` and "Discord", not "Discovery". -- ___ Python tracker ___ __

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: LLVM considers `was32-wasi` an alias for `wasm32-unknown-wasi`. Verified on the WebAssembly Discover server at https://discord.com/channels/453584038356058112/596492540388179976/898618010221310062. -- ___ Python tra

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: Our config.sub is recent enough and has support for wasm32, wasm64, wasi, and emscripten: $ grep was[mi] config.sub | wasm32 | wasm64 \ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ --

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: I have added wasm32/wasm64 architectures with emscripten/wasi operating system as cross-build targets. The values are based on Rust targets: $ rustc --print target-list | grep wasm wasm32-unknown-emscripten wasm32-unknown-unknown wasm32-wasi wasm64-unknown

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch nosy: +christian.heimes nosy_count: 7.0 -> 8.0 pull_requests: +28008 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29771 ___ Python tracker

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-26 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-24 Thread Beuc
Change by Beuc : -- nosy: -Beuc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-21 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-20 Thread Ethan Smith
Ethan Smith added the comment: I think the first thing we should do is figure out whether we want to support Emscripten or WASI (or both). Emscripten uses Javascript polyfills for some syscalls, while WASI makes direct calls the VM it is running in. They both can use WebAssembly for executin

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-05-22 Thread Beuc
Beuc added the comment: I've been maintaining a Python Emscripten build for the Ren'Py (game engine) web port: https://github.com/python-emscripten/python https://renpy.beuc.net/ I recently tackled Python3 with a minimal/embeddable approach and checking the other ports already pointed in the

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread Simon Biggs
Simon Biggs added the comment: Hi pmp-p and Serhiy, I'd be more than happy to attempt a pull request, but I imagine a change such as this needs to be discussed first, trying not to "rush to make a patch" (https://www.youtube.com/watch?v=voXVTjwnn-U&feature=youtu.be&t=2546). Also, I doubt I wil

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread pmp-p
pmp-p added the comment: you can add * https://github.com/pmp-p/pydk/tree/master/sources.em/Python-3.8.0b4.patchset -- Python 3.8.x (wasm not asm.js, clang-10+ required) demo https://pmp-p.github.io/python-next/test.html CPython can already run in the browser with very little patching, bu

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want to provide a pull request? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue40280] Consider supporting emscripten/webassembly as a build target

2020-04-14 Thread Simon Biggs
New submission from Simon Biggs : Since asm.js came on the scene, and now Web Assembly people have created CPython patches to support building CPython with emscripten. See: * https://github.com/PeachPy/EmCPython -- Python 2.7 * https://github.com/dgym/cpython-emscripten/tree/master/3.5.2/patch

<    1   2