This is an automated email from the ASF dual-hosted git repository.
rok pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new edfb24dde1 GH-49426: [Python] Do not build pyarrow-stubs on emscripten
builds (#49427)
edfb24dde1 is described below
commit edfb24dde1dd8924fd3758b731530e408ff6a42e
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Mar 3 21:33:17 2026 +0100
GH-49426: [Python] Do not build pyarrow-stubs on emscripten builds (#49427)
### Rationale for this change
The emscripten job is currently failing due to pyarrow-stubs building.
### What changes are included in this PR?
- Do not build doc stubs for emscripten build as it tries to install
pyarrow which is unavailable.
- Minor fix for chrome as it was timing out without being able to download
wasm wheel.
- Fix loading tzdata as some tests were failing without it.
### Are these changes tested?
Yes via archery.
### Are there any user-facing changes?
No
* GitHub Issue: #49426
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Rok Mihevc <[email protected]>
---
python/scripts/run_emscripten_tests.py | 3 ++-
python/setup.py | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/python/scripts/run_emscripten_tests.py
b/python/scripts/run_emscripten_tests.py
index 406dfc54e4..a4f9ce9d9a 100644
--- a/python/scripts/run_emscripten_tests.py
+++ b/python/scripts/run_emscripten_tests.py
@@ -116,7 +116,7 @@ class
TemplateOverrider(http.server.SimpleHTTPRequestHandler):
def run_server_thread(dist_dir, q):
global _SERVER_ADDRESS
os.chdir(dist_dir)
- server = http.server.HTTPServer(("", 0), TemplateOverrider)
+ server = http.server.HTTPServer(("127.0.0.1", 0), TemplateOverrider)
q.put(server.server_address)
print(f"Starting server for {dist_dir} at: {server.server_address}")
server.serve_forever()
@@ -280,6 +280,7 @@ import micropip
if "pyarrow" not in sys.modules:
await micropip.install("hypothesis")
import pyodide_js as pjs
+ await pjs.loadPackage("tzdata")
await pjs.loadPackage("numpy")
await pjs.loadPackage("pandas")
import pytest
diff --git a/python/setup.py b/python/setup.py
index 4f2bf7585e..02e7cb4614 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -126,6 +126,9 @@ class build_ext(_build_ext):
def _update_stubs(self):
"""Copy stubs to build directory, then inject docstrings into the
copies."""
+ if is_emscripten:
+ # stubs are not supported in Emscripten build
+ return
stubs_dir = pjoin(setup_dir, 'pyarrow-stubs')
if not os.path.exists(stubs_dir):
return