You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48e4abf
Browse filesBrowse the repository at this point in the historyBrowse files
apacheGH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (2026_0 ABI) (apache#47330)
### Rationale for this change
This PR allows PyArrow to be built and tested against our Pyodide `2026_0` ABI introduced with [the Pyodide 314.0.0 release](https://blog.pyodide.org/posts/314-release/).
Closesapache#47329
### What changes are included in this PR?
This PR updates the Pyodide version in the build scripts to 314.0.7 and the Emscripten version to 5.0.3, along with associated build-time changes to fix compilation issues.
This PR updates the `conda-python-emscripten` job to Pyodide 314.0.7, Python 3.14, Node 24, and pyodide-build 0.39.2 and later. The Emscripten version for this job is gathered from the Pyodide distribution, which renders it to be 5.0.3. That matches the version the C++ job uses, since apache#55417.
The build changes are as follows:
- Emscripten builds now use native WebAssembly exceptions and WebAssembly-based `setjmp`/`longjmp` (`-fwasm-exceptions -sSUPPORT_LONGJMP=wasm`), as our `2026_0` ABI requires.
- `libarrow_python.so` and the Cython extension modules are linked with an `$ORIGIN` RPATH, in order for us to find `libarrow_python.so` next to the modules that need it.
- The host Protobuf build is given the C++ standard explicitly, which fixes an Abseil ABI mismatch when linking with AppleClang on my machine.
### Are these changes tested?
Yes, these changes are (to be) tested by the `test-conda-python-emscripten` and `test-ubuntu-22.04-cpp-emscripten` jobs on Crossbow.
### Are there any user-facing changes?
Yes, downstream packagers trying to build a WASM wheel for Pyodide are now required to use newer Pyodide and Emscripten versions, and the latest stable version of pyodide-build.
* GitHub Issue: apache#47329
cc: @ hoodmane @ ryanking13
Lead-authored-by: Agriya Khetarpal <[email protected]>
Co-authored-by: Tadeja Kadunc <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
RUN pyodide_dist_url="https://github.com/pyodide/pyodide/releases/download/${pyodide_version}/pyodide-${pyodide_version}.tar.bz2" && \
41
48
wget -q "${pyodide_dist_url}" -O- | tar -xj -C /
42
49
43
-
# install node 20 (needed for async call support)
50
+
# install node 24 (needed for async call support and JSPI)
44
51
# and pthread-stubs for build, and unzip needed for chrome build to work
45
52
# xz is needed by emsdk to extract node tarballs
46
-
RUN conda install nodejs=20 unzip pthread-stubs make xz -c conda-forge
53
+
RUN conda install nodejs=24 unzip pthread-stubs make xz -c conda-forge
47
54
48
55
# install correct version of emscripten for this pyodide
Copy file name to clipboardExpand all lines: docs/source/developers/cpp/emscripten.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,9 @@ activate it using the commands below (see https://emscripten.org/docs/getting_st
0 commit comments