diff --git a/python/scripts/run_emscripten_tests.py b/python/scripts/run_emscripten_tests.py index 406dfc54e4fc..a4f9ce9d9a28 100644 --- a/python/scripts/run_emscripten_tests.py +++ b/python/scripts/run_emscripten_tests.py @@ -116,7 +116,7 @@ def end_headers(self): 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 @@ def _load_pyarrow_in_runner(driver, wheel_name): 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 4f2bf7585e13..02e7cb4614de 100755 --- a/python/setup.py +++ b/python/setup.py @@ -126,6 +126,9 @@ def run(self): 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