Commit Graph

1388 Commits

Author SHA1 Message Date
Roman Yurchak a79e2893f2
DOC Update project subtitle to be more general (#1246) 2021-02-15 21:27:28 +01:00
Hood Chatham 65e3a808e7
DOC Update faq on custom namespaces (#1253) 2021-02-15 20:38:07 +01:00
Hood Chatham 264157a480
Highlight embedded python code in docs (#1252) 2021-02-15 09:38:49 +01:00
Roman Yurchak 2771ded002
DOC Fix pyodide logo in readme (#1254) 2021-02-15 09:28:58 +01:00
Roman Yurchak 444e11f416
DOC update to sphinx book theme (#1250) 2021-02-15 08:59:38 +01:00
Hood Chatham ad611d608d
Don't implicitly convert tuple and bytes objects into Javascript (#1234) 2021-02-14 12:18:57 +01:00
Dexter Chua eb2bd5c458
Allow changing emscripten version with env var (#1249)
This makes it easier to test against different emscripten versions on
the same tree (e.g. tot a la #1223).
2021-02-14 12:17:20 +01:00
Hood Chatham 203a5c0c32
Add PyProxy.type (#1237) 2021-02-14 12:16:43 +01:00
Hood Chatham 547753b8ed
Make a pyproxy of an awaitable py object an awaitable js object (#1170) 2021-02-14 12:12:55 +01:00
Dexter Chua 4788dd750b
Change error code on waitpid to ENOSYS (#1240) 2021-02-14 09:56:39 +01:00
Dexter Chua b6e409876c
Use async functions for languageLoaderPlugin (#1239)
This allows us to use more conventional "modern" javascript.

In the future, I hope to make languageLoaderPlugin a function instead of
a promise (which would be very easy given this commit), so that users
can supply a custom Module object. One useful application would be to
supply stdout/stderr handlers. This would be a breaking change so I'll
leave it for antoher time.
2021-02-14 09:56:09 +01:00
Dexter Chua cce7b66b0d
Replace some scipy patches with sed (#1224) 2021-02-12 12:59:47 +01:00
Dexter Chua a73d7e7dee
TST Remove upstreamed memfsmtime emscripten test (#1241)
The patch is upstreamed and so are tests.
2021-02-12 12:00:27 +01:00
Hood Chatham 3c5db381cd
Rename deepCopyToJavascript -> toJs & rm shallowCopyToJavascript (#1231) 2021-02-11 22:02:15 +01:00
Hood Chatham f64bee40d7
Simplify setup code (#1195) 2021-02-11 07:39:01 +08:00
Dexter Chua 747152a008
Skip -ffixed-form flag (#1225)
This is only effective when compiling fortran code, which is not what we
are doing since we have applied f2c. Future versions of clang forbid
specifying the flag when not compiling fortran.
2021-02-10 18:25:56 +01:00
Roman Yurchak 1aea60d91d
MAINT Update to emscripten 2.0.13 (#1198)
Co-authored-by: Dexter Chua <dalcde@users.noreply.github.com>
2021-02-10 09:23:10 +01:00
Roman Yurchak a4907839dd
TST xfail the pillow test that fails on Chrome (#1222) 2021-02-09 23:39:07 +01:00
Dexter Chua b46acbadc2
Use EM_COMPILER_WRAPPER to enable ccache (#1218)
Fixes #1007. As in #1214, this breaks build if ccache is not available.
2021-02-09 12:28:37 +08:00
Roman Yurchak 0755f191b7
Deploy even with a failure of "tests packages" CI on chrome (#1216) 2021-02-08 13:51:28 +01:00
Hood Chatham 6e3f5747ec
Remove debug statements from fix_emulate_pointers (#1212)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Dexter Chua <dalcde@users.noreply.github.com>
2021-02-08 09:49:44 +01:00
Dexter Chua 56073be2a9
Re-enable ccache for binaryen build (#1214)
Binaryen now invokes cc instead of gcc, and the cc symlink isn't in
/usr/lib/ccache. This replaces the implementation in #1014.

This has the disadvantage that build is now broken if ccache is not
available.
2021-02-08 09:42:43 +01:00
Hood Chatham 7268e45c0f
Simplify hiwire constants (#1213)
Previously they were defined as macros and getters were defined for use in javascript, since javascript cannot access macros. Now both are replaced by global constants.
2021-02-08 13:51:12 +08:00
Roman Yurchak 5d50a5f96a
Revert removal of xfailed scipy dependent tests (#1205) 2021-02-07 08:37:22 +01:00
Hood Chatham c4627897fa
TST: Fix test_monkeypatch_eval_code (#1206) 2021-02-06 21:20:34 +01:00
Hood Chatham 19ebad28dc
DOC Use sphinx-js for pyodide_js documentation (#1197) 2021-02-06 21:17:57 +01:00
rdb 5d392a6699
DOC Fix broken links in README.md (#1199) 2021-02-06 11:48:13 +01:00
joemarshall 1bd8380c01
Emscripten 2.0.12 Upstream backend (#1102)
Co-authored-by: Dexter Chua <dalcde@users.noreply.github.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-02-06 08:58:12 +01:00
Roman Yurchak e5672449f9
F2C, CLAPACK, scipy and numpy fixes for the upstream backend (#1193)
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
2021-02-05 10:54:12 +01:00
Hood Chatham a4fad9b500
Add simple web loop (#1158) 2021-02-05 09:20:15 +01:00
Hood Chatham d27ee60077
Remove empty jsimport.* files (#1196) 2021-02-05 11:34:59 +08:00
Hood Chatham 503741ea48
PyProxy methods for iterators / iterables / generators (#1180) 2021-02-04 21:16:27 +01:00
Roman Yurchak 4972343414
pywasmcross improvements to work with the upstream backend (#1184)
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
2021-02-04 12:34:40 +01:00
Hood Chatham 48db27d6d2
Change isPromise to accept nonstandard javascript awaitables (#1189) 2021-02-04 09:30:40 +01:00
Hood Chatham fe0329bae8
MAINT Rewrite JsProxy_IterNext (#1187) 2021-02-04 09:24:48 +01:00
Hood Chatham 9cd51da504
Allow awaiting the same proxied promise multiple times (#1163) 2021-02-04 09:21:44 +01:00
casatir d9fffe15b6
Fix REPL completion (#1191) 2021-02-04 08:38:39 +01:00
Hood Chatham f60e43efda
TST py->js->py conversion for list and dict (#1188) 2021-02-03 23:49:01 +01:00
Hood Chatham b3a965a1f6
Don't automatically copy python objects into javascript (#1167)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test

* Fix test_console

* Update changelog
2021-02-02 19:45:56 +01:00
Roman Yurchak 28f168cf2e
Fix uninitialized variables in PyProxy (#1183)
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
2021-02-02 09:53:28 +01:00
Dexter Chua 68cdeb519d
Add missing -fPIC in CLAPACK (#1185)
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
2021-02-02 01:26:16 +01:00
Hood Chatham f9fb31d102
Add setInterruptBuffer to public API, update changelog and docs (#1173) 2021-01-31 15:59:13 +01:00
Dexter Chua 4de39e3617
Run benchmarks in alphabetical order (#1178)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-01-30 13:58:34 +01:00
Hood Chatham d548644ad0
Fix merge error between PR #1169 and #1176 (#1177) 2021-01-30 10:16:09 +01:00
Hood Chatham 5631fcd1d6
Fix compile error from methnoargs-signatures branch (#1176) 2021-01-30 00:17:56 +01:00
Hood Chatham c12e245191
Fix METH_NOARGS function signatures (#1169) 2021-01-29 21:24:14 +01:00
Hood Chatham 7d68edc447
DOC Fix broken link in readme (#1174) 2021-01-25 13:19:17 +01:00
Jan Max Meyer fd351bc4fc
MAINT Minor Makefile improvements (#1161) 2021-01-23 00:18:30 +01:00
Jan Max Meyer 81810a4c4b
Revert "Don't automatically copy python objects into javascript (#1152)" (#1165)
This reverts commit 6a44233562.
2021-01-22 18:22:31 +01:00
Hood Chatham 6a44233562
Don't automatically copy python objects into javascript (#1152)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test
2021-01-22 12:28:22 +01:00