Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/scripts/run_emscripten_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +129 to +131
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

stubs_dir = pjoin(setup_dir, 'pyarrow-stubs')
if not os.path.exists(stubs_dir):
return
Expand Down
Loading