forked from pyodide/pyodide
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into importhook-key-error
- Loading branch information
Showing
50 changed files
with
725 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "Docker", | ||
// keep in sync with "run_docker" | ||
"image": "pyodide/pyodide-env:20240928-chrome127-firefox128", | ||
"image": "pyodide/pyodide-env:20241028-chrome130-firefox131", | ||
"remoteUser": "root", | ||
"onCreateCommand": ".devcontainer/onCreate-docker.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "pyodide-build"] | ||
path = pyodide-build | ||
url = https://github.com/pyodide/pyodide-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 3fe0bfb78022df996fb88da1791d1c8410c07610 Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Sun, 17 Jul 2022 14:40:39 +0100 | ||
Subject: [PATCH 1/7] Public pymain_run_python | ||
Subject: [PATCH 1/8] Public pymain_run_python | ||
|
||
Discussion here: | ||
https://discuss.python.org/t/unstable-api-for-pymain-run-python-run-python-cli-but-dont-finalize-interpreter/44675 | ||
|
2 changes: 1 addition & 1 deletion
2
cpython/patches/0002-Add-emscripten-platform-support-to-ctypes.util.find_.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From a68778f7d8d2fa121ff4cab402f2a862e5cb1afe Mon Sep 17 00:00:00 2001 | ||
From: ryanking13 <[email protected]> | ||
Date: Fri, 2 Dec 2022 11:36:44 +0000 | ||
Subject: [PATCH 2/7] Add emscripten platform support to | ||
Subject: [PATCH 2/8] Add emscripten platform support to | ||
ctypes.util.find_library | ||
|
||
--- | ||
|
2 changes: 1 addition & 1 deletion
2
cpython/patches/0003-Allow-multiprocessing.connection-top-level-import.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From cfda6ef57f6c49a3bd8a14ebb989c9e2222f10a6 Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Mon, 19 Dec 2022 09:09:14 -0800 | ||
Subject: [PATCH 3/7] Allow multiprocessing.connection top level import | ||
Subject: [PATCH 3/8] Allow multiprocessing.connection top level import | ||
|
||
Upstream PR: | ||
https://github.com/python/cpython/pull/114808 | ||
|
2 changes: 1 addition & 1 deletion
2
cpython/patches/0004-Make-Emscripten-trampolines-work-with-JSPI.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From a3f1217f7527907c237085c5e900c950c7d2603a Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Wed, 28 Jun 2023 10:46:19 -0700 | ||
Subject: [PATCH 4/7] Make Emscripten trampolines work with JSPI | ||
Subject: [PATCH 4/8] Make Emscripten trampolines work with JSPI | ||
|
||
There is a WIP proposal to enable webassembly stack switching which have been | ||
implemented in v8: | ||
|
34 changes: 34 additions & 0 deletions
34
cpython/patches/0005-Add-fallback-trampoline-for-JSPI-with-no-type-reflec.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From 2119fa65d7af744fd0050214d3452312bbb8d063 Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Tue, 22 Oct 2024 15:16:03 +0200 | ||
Subject: [PATCH 5/8] Add fallback trampoline for JSPI with no type reflection | ||
|
||
--- | ||
Python/emscripten_trampoline.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/Python/emscripten_trampoline.c b/Python/emscripten_trampoline.c | ||
index 8d29393bd87..812cc10167f 100644 | ||
--- a/Python/emscripten_trampoline.c | ||
+++ b/Python/emscripten_trampoline.c | ||
@@ -10,7 +10,7 @@ | ||
* https://github.com/GoogleChromeLabs/wasm-feature-detect/blob/main/src/detectors/type-reflection/index.js | ||
*/ | ||
EM_JS(int, _PyEM_detect_type_reflection, (), { | ||
- return "Function" in WebAssembly; | ||
+ return !!Module.PyEM_CountArgs; | ||
}); | ||
|
||
void | ||
@@ -36,7 +36,7 @@ EM_JS(int, _PyEM_CountFuncParams, (PyCFunctionWithKeywords func), { | ||
if (n !== undefined) { | ||
return n; | ||
} | ||
- n = wasmFunctionType(wasmTable.get(func)).parameters.length; | ||
+ n = Module.PyEM_CountArgs(func); | ||
_PyEM_CountFuncParams.cache.set(func, n); | ||
return n; | ||
} | ||
-- | ||
2.34.1 | ||
|
4 changes: 2 additions & 2 deletions
4
...ONG_BIT-constant-to-be-always-32bit.patch → ...ONG_BIT-constant-to-be-always-32bit.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 986bb199865ea5ec81aaec40e02a51d90f339da4 Mon Sep 17 00:00:00 2001 | ||
From 0539585c0d6ed3df3199ce248f5b4d59e89bb6f5 Mon Sep 17 00:00:00 2001 | ||
From: ryanking13 <[email protected]> | ||
Date: Fri, 12 Jan 2024 00:52:57 +0900 | ||
Subject: [PATCH 5/7] Fix LONG_BIT constant to be always 32bit | ||
Subject: [PATCH 6/8] Fix LONG_BIT constant to be always 32bit | ||
|
||
Starting from Emscripten 3.1.50, there is an issue where LONG_BIT is | ||
calculated to 64 for some reason. This is very strange because LONG_MAX | ||
|
4 changes: 2 additions & 2 deletions
4
...ZoneInfo-is-imported-without-tzdata.patch → ...ZoneInfo-is-imported-without-tzdata.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 2643d68535a5ab6c8b4d9105257e53f3a2498b46 Mon Sep 17 00:00:00 2001 | ||
From 0ccdd69344894759ca9de6d74c32b9843f099c90 Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Thu, 25 Jul 2024 14:28:57 +0200 | ||
Subject: [PATCH 6/7] Warn if ZoneInfo is imported without tzdata | ||
Subject: [PATCH 7/8] Warn if ZoneInfo is imported without tzdata | ||
|
||
--- | ||
Lib/zoneinfo/_common.py | 6 ++++++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
From 0f4f4f02bda0f6ee4efd24e8c2670e8bc80194a8 Mon Sep 17 00:00:00 2001 | ||
From f9b7a02aba3bf050189f3347dce5fcd39bf7dc8d Mon Sep 17 00:00:00 2001 | ||
From: Hood Chatham <[email protected]> | ||
Date: Thu, 25 Jul 2024 14:41:37 +0200 | ||
Subject: [PATCH 7/7] Add call to `JsProxy_GetMethod` to help remove temporary | ||
Subject: [PATCH 8/8] Add call to `JsProxy_GetMethod` to help remove temporary | ||
|
||
_PyObject_GetMethod is a special attribute lookup function that won't call the | ||
`_PyObject_GetMethod` is a special attribute lookup function that won't call the | ||
`__get__` descriptor on a method to avoid creating a temporary PyMethodObject. | ||
We also want to optimize away a temporary JsProxy in a special way. In order to | ||
do this, we patch the behavior of `_PyObject_GetMethod` to use | ||
|
@@ -16,7 +16,6 @@ function. Otherwise, this patch does nothing. | |
|
||
See the definition of `JsProxy_GetMethod` in `jsproxy.c` and particularly | ||
`JsMethodCallSingleton` for how this is used. | ||
|
||
--- | ||
Objects/object.c | 17 +++++++++++++++++ | ||
1 file changed, 17 insertions(+) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.