-
Notifications
You must be signed in to change notification settings - Fork 29
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
skip relinking checks for webassembly #741
Conversation
This works! I can run the pyjs_code_runner in the tests to test the package wasm package! The test section is somewhat complicated for emscripten-wasm32, but it works! tests:
- script: python -m pip install playwright && playwright install && pyjs_code_runner run script browser-worker --conda-env $PREFIX --mount $(pwd):/tests --script /tests/test_regex.py --headless
requirements:
build:
- pyjs_code_runner
- pip
run:
- pyjs
- pytest
files:
recipe:
- test_regex.py caviat: for macos I have to install playwright via pip as it is not available for conda-forge on mac |
Nice! I think multi line scripts should work fine, too, btw |
indeed. Looks better tests:
- script: python -m pip install playwright &&
playwright install &&
pyjs_code_runner run script browser-main
--conda-env $PREFIX
--mount $(pwd):/tests
--script /tests/test_regex.py
--headless
requirements:
build:
- pyjs_code_runner
- pip
run:
- pyjs
- pytest
files:
recipe:
- test_regex.py Also the output looks very nice =)
|
You can also use |
Then you shouldn't need the && |
When building a shared library / a python package with c extension for emscripten-wasm32 one is facing this
Atm this PR:
This is not done very elegant atm and might even be wrong, but I believe for the boa/conda-build based workflow, we also just skip anything which involves parsing the *.so files.
With that, the build of the regex python package builds successful. Still working on integrating the testing.