Dexter Chua
3e33d88373
Remove dataLoadPromise in pyodide.js ( #1075 )
...
This is not necessary, because postRun is not run until all dependencies
are satisfied.
Since the definition of Module.postRun is slightly modified here, I took
the opportunity to convert it to use async/await.
2021-01-08 17:28:03 +01:00
Hood Chatham
e11d40ef04
Unify fail macros ( #1062 )
2021-01-08 14:33:27 +08:00
Hood Chatham
1baffc14f8
Add `version` field to pyodide in main.c ( #1065 )
...
This is now a string constant not a function and no longer imports the pyodide python package into the main user namespace.
2021-01-08 11:06:48 +08:00
Hood Chatham
42d9d6caed
API Change: Remove repr API ( #1067 )
2021-01-08 11:00:27 +08:00
Hood Chatham
cb29e5ef53
More careful impl of hiwire_bool, added test cases ( #1061 )
2021-01-08 10:35:16 +08:00
Dexter Chua
06b6285253
Properly monitor pyodide-py changes ( #1071 )
...
Fixes #1069
2021-01-08 10:18:40 +08:00
Hood Chatham
a99859e62b
API: Remove pyodide.get_completions ( #1066 )
2021-01-07 22:20:13 +01:00
Roman Yurchak
b2a2f413d8
MAINT Update pre-built docker version to 0.16.1 ( #1068 )
2021-01-07 20:30:42 +01:00
Michael Greminger
3e89750d16
PKG Add nlopt package ( #1034 )
2021-01-07 19:22:38 +01:00
casatir
7ac95d0259
Simplifying eval_code and avoid injecting dummy variable. ( #1041 )
2021-01-07 09:27:42 +01:00
Dexter Chua
2454c483d6
git clone --depth 1 emsdk ( #1063 )
2021-01-07 09:01:25 +01:00
Michael Greminger
ec527fee02
Fix build error for zlib ( #1060 )
2021-01-07 10:48:04 +08:00
Hood Chatham
a58c8d7186
EM_JS wrappers to convert calls to use Python error conventions ( #1051 )
2021-01-06 23:48:15 +01:00
Dexter Chua
6ef0ebbfdf
Refactor conftest.py ( #1055 )
2021-01-06 23:29:10 +01:00
Hood Chatham
1f816eea9c
Remove `from js import iodide` from matplotlib wasm_backend ( #1057 )
2021-01-06 21:56:27 +01:00
Dexter Chua
2aa8982990
Actually generate a sysconfigdata.py ( #1044 )
...
Previously, we simply copied from the host, which has wildly incorrect
values. Fixes #1042
2021-01-05 14:14:55 +01:00
Hood Chatham
34af5c0c7a
Make Jsproxy getattr and dir use GenericGetAttr and __dir__ ( #1017 )
2021-01-05 13:49:02 +01:00
Dexter Chua
0eaa29b3f3
Clean up workspace after core-python build ( #1045 )
...
Persisting fewer artifacts between jobs should give a slightly faster
build. This also guarantees that all we need to build packages are emsdk
and cpython/installs, which is useful for third party packages building.
2021-01-05 09:47:28 +01:00
casatir
1155077541
Fix commented trailing semicolon in eval_code. ( #1039 )
2021-01-04 23:16:52 +01:00
Hood Chatham
f43fc42f35
Use Uint32 counter in hiwire ( #1016 )
...
Also replaces JsERROR instances with NULL
2021-01-04 23:07:40 +01:00
Hood Chatham
9eaf376b96
Detect pyodide.js failure in conftest.py ( #995 )
2021-01-04 14:16:28 +01:00
Dexter Chua
15a8ada2d2
Minimal test for regex ( #1038 )
...
This is useful for testing the build system becaues regex is a fairly
small package that uses C.
2021-01-04 19:52:43 +08:00
Dexter Chua
81cc3015bb
Use replace-libs for matplotlib ( #1037 )
...
The library that is supplied by USE_PNG is png, but matplotlib seeks
png16. With the fastcomp backend, we end up ignoring it anyway, but with
the upstream backend this will be the correct course of action
2021-01-04 09:50:01 +01:00
Dexter Chua
966be460c7
Remove unused lines from .gitignore ( #1036 )
...
- /build/ is duplicate
- lz4 doesn't exist anymore
- If .bc files were produced we ought to be alarmed
2021-01-04 14:36:58 +08:00
Dexter Chua
ac3f1a358e
Build C libraries with the Python build system ( #1027 )
2021-01-03 22:09:40 +01:00
Roman Yurchak
d15fe32c21
Don't include jedi and parso in the core pyodide package ( #987 )
2021-01-03 17:50:48 +01:00
Roman Yurchak
d5a7ada6ff
TST Fix test_pywasmcross.py::test_handle_command ( #1032 )
2021-01-03 17:11:32 +01:00
joemarshall
5ed423d9b3
Support replace libraries option in yaml files ( #1029 )
...
Some libraries have different names on wasm e.g. png16
2021-01-03 23:37:44 +08:00
joemarshall
324f595539
build .o files rather than .bc files. ( #1028 )
...
asm.js fastcomp build doesn't care about the file extension. upstream (wasm direct) build needs it to be .o
2021-01-03 22:14:56 +08:00
Dexter Chua
5489c9b3ba
Update docs for six change ( #1026 )
2021-01-03 20:00:31 +08:00
Dexter Chua
f6f5da1145
Create script to set emscripten env vars ( #1013 )
2021-01-03 12:25:14 +01:00
Dexter Chua
2b5a79f72e
Simplify micropip ( #1022 )
2021-01-03 12:24:32 +01:00
Dexter Chua
a211802b44
Slightly simplify cpython patch ( #1023 )
2021-01-03 09:48:16 +01:00
Hood Chatham
9dff7308ec
Rename type_conversion ==> core ( #1020 )
2021-01-03 09:46:15 +01:00
Dexter Chua
28d0dc2874
Update bleach and packaging ( #1021 )
2021-01-03 11:51:58 +08:00
Michael Greminger
07e9352c6a
BLD Add cxxflags to build packages using cpp ( #1019 )
...
* Adding nlopt package (WIP)
* cxxflags added, nlopt builds
* Add docs and test for cxxflags feature
* Applied black formatter
* Remove nlopt new pkg from this branch
* Removed empty cxxflags option from SciPy meta.yaml
2021-01-03 08:17:08 +08:00
Hood Chatham
eeaa3c3ecf
runPython refactoring ( #923 )
...
Co-authored-by: Dexter Chua <dec41@srcf.net>
2021-01-02 23:44:24 +01:00
Dexter Chua
c42c81d650
Enable ccache for emsdk ( #1014 )
2021-01-02 21:03:45 +08:00
Dexter Chua
fe0b24d124
Update binaryen ( #1015 )
...
This is the version that comes with emscripten 1.38.44
2021-01-02 21:03:23 +08:00
Dexter Chua
2ffd31284c
Only build wasm-opt in binaryen ( #1012 )
2021-01-02 19:40:35 +08:00
Dexter Chua
869044ba2e
Build six using usual build system ( #1010 )
2021-01-02 16:59:28 +08:00
Dexter Chua
2dfeba4c05
Build with -fPIC ( #1008 )
...
This is needed for the upstream backend, and I believe is a noop under
the fastcomp backend
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Joe Marshall <joe.marshall@nottingham.ac.uk>
2021-01-02 09:17:14 +01:00
Dexter Chua
a8a0b73642
Fix pywasmcross race condition ( #1011 )
...
When building packages in parallel, it is possible that the symlink is
created by a different thread between the check and the linking, which
causes the build to fail. This has happened multiple times in CI.
Instead, just try to create the symlink and pass if it already exists,
which is the pythonic way of doing this.
2021-01-02 15:07:58 +08:00
Dexter Chua
4ae245855d
Install uglifyjs and lessc via npm ( #1002 )
...
The installation is very fast, and this avoids having two copies of node
around. In particular, this avoids the need to monkey-patch uglify-js to
use the system node.
This can be further streamlined when #792 is merged
2021-01-01 23:43:48 +08:00
Dexter Chua
4e39fd39d6
Remove unused variable in Makefile ( #1001 )
2021-01-01 21:19:27 +08:00
Dexter Chua
208fa57bcf
Explicitly tell sqlite popen is not available ( #999 )
2021-01-01 10:45:44 +01:00
Dexter Chua
4502707e4f
Remove clean_for_dist.sh ( #997 )
...
clean_for_dist.sh is outdated and mostly refers to files that do not
exist. make clean does the job well
2021-01-01 08:56:32 +01:00
Dexter Chua
27e2800120
Use upstream file packager instead of fork ( #991 )
2021-01-01 08:48:28 +01:00
Hood Chatham
ba2d394d96
Support relative URLs in micropip ( #872 )
...
Co-authored-by: Dexter Chua <dec41@srcf.net>
2020-12-31 18:55:27 +01:00
Dexter Chua
043f699c3f
Remove superfluous CPython patch ( #993 )
2020-12-31 18:22:33 +01:00