-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for pyodide 0.27.1, including pyarrow + pandas #2901
Conversation
5e18b93
to
5e5eb22
Compare
@@ -168,7 +168,14 @@ async function focus_package() { | |||
message: "Focus NPM package(s)?", | |||
default: () => { | |||
if (CONFIG["PACKAGE"]) { | |||
return CONFIG["PACKAGE"].split(","); | |||
const packages = CONFIG["PACKAGE"].split(","); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test this, runpnpm -w run setup
, select perspective-pyodide. then run setup again. perspective-pyodide should be still selected in the menu.
previously the menu selected perspective-python on the second go - which made it easy to accidentally switch back to cpython
e0b1bfc
to
5e40a9e
Compare
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
6b1ab04
to
63ee460
Compare
- Switch to using global `CMAKE_CXX_FLAGS` to ensure every target we need to link, including all Arrow components, is built with Emscripten exceptions support. The build already does the same thing for wasm exceptions so it's at least more consistent now. - Add two regression tests to the pytest-pyodide suite for pyarrow and pandas examples, which were previously crashing due to inconsistent Emscripten exceptions support between the object files Signed-off-by: Tom Jakubowski <tom@prospective.dev>
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
63ee460
to
5f8fdc3
Compare
I think that's a spurious test failure. I can't restart Actions runs in this repo, but I did do a manual dispatch on my fork: https://github.com/tomjakubowski/perspective/actions/runs/13041122245 |
shell: bash | ||
run: python -m playwright install | ||
if: ${{ inputs.pyodide == 'true' }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we move these?
@@ -338,6 +338,15 @@ if(PSP_PYODIDE) | |||
string(APPEND CMAKE_CXX_FLAGS "${RELOCATABLE_FLAGS}") | |||
endif() | |||
|
|||
if(PSP_PYODIDE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose we set this for everything.
CMAKE_CXX_FLAGS
to ensure every target weneed to link, including all Arrow components, is built with Emscripten
exceptions support. The build already does the same thing for wasm
exceptions so it's at least more consistent now.
pandas examples, which were previously crashing due to inconsistent
Emscripten exceptions support between the object files
Also includes:
Pull Request Checklist
Discussions, this PR applies to. (N/A)