Commit Graph

179 Commits

Author SHA1 Message Date
Roman Yurchak 953a395784
MAINT Fix version type in glpk (#1117) 2021-01-11 10:52:23 +01:00
Roman Yurchak a68833fe6e
Add `meta.yaml` validation (#1105) 2021-01-11 15:59:22 +08:00
Rudolfs Petrovs 65aa334351
PKG Add optlang package (#1093) 2021-01-10 19:26:38 +01:00
Dexter Chua e706dd4223
Document f2c patches (#1087) 2021-01-10 17:12:48 +08:00
Rudolfs Petrovs 83f8fa936b
Fix SHA256 hash checking, incorrect key was used in meta.yaml (#1099) 2021-01-10 12:47:58 +08:00
joemarshall 6cc7f9c46d
Make f2c functions return int
This patch makes everything in numpy, scipy and CLAPACK that began life as a fortran subroutine return int, whereas before they were a smattering of void plus lots of int, with a bunch of conflicts where the same function was defined as int in some and void in others. This matters because on upstream emscripten, these packages will not build due to linker conflicts, as the wasm linker can't link a function returning int to a function returning void.

Annoyingly, this has to be int return not void, because whereas a normal fortran subroutine doesn't return anything, there's an obscure feature of fortran 77 called alternative returns which allows subroutines to say they want to return by jumping to some other place in the code. f2c handles this with integer return values.
2021-01-09 17:44:41 +08:00
Hood Chatham a99859e62b
API: Remove pyodide.get_completions (#1066) 2021-01-07 22:20:13 +01:00
Michael Greminger 3e89750d16
PKG Add nlopt package (#1034) 2021-01-07 19:22:38 +01:00
Michael Greminger ec527fee02
Fix build error for zlib (#1060) 2021-01-07 10:48:04 +08:00
Hood Chatham 1f816eea9c
Remove `from js import iodide` from matplotlib wasm_backend (#1057) 2021-01-06 21:56:27 +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 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
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 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 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
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 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
Wei Ouyang 7d21442b30
Add pillow as a requirement of imageio (#976) 2020-12-30 10:38:56 +08:00
Wei Ouyang 96159d4e60
Add zarr and numcodecs (#938) 2020-12-24 18:15:35 +01:00
Wei Ouyang bcc3996a0d
PKG Add imageio (#919) 2020-12-24 08:26:26 +01:00
Dexter Chua 8de2ed1202
Build C libraries via buildall.py (#927)
This addresses part of #713, by listing and building C libraries as
dependencies. This means we automatically build CLAPACK when needed, and
`lxml`'s C dependencies are not built if lxml is not. In particular,
building "core" should now be faster.

The building itself is still performed by Makefile.
2020-12-23 14:24:32 +01:00
Dexter Chua 143ce603d7
BLD Clean up CLAPACK build (#901)
The biggest change is that most of `0001-hacks-for-WebAssembly-build.patch` is eliminated, and the remaining is split up into individual single-purpose patches with corresponding documentation.

Most of `0001-hacks-for-WebAssembly-build.patch` is in fact unnecessary. We can continue to produce `.a` files instead of `.bc` files, and all we have to do to make it build is to set `$(ARCH) = emar` and `$(RANLIB) = emranlib`. In fact, we don't have to set them to anything, since the point of emmake is to set these for us (except emmake uses `$(AR)` so we set `$(ARCH) = $(AR)`).

There are places where `ar` and `cc` etc. are used directly instead of the variables; we use `sed` to fix this in the parent `Makefile` instead of patching.

In addition, there are also the following changes:
 - Change the build system to build CLAPACK-WA/INSTALL as well. We should always have built it, but we managed to get away with not doing so due to a bug in emscripten that is fixed in 1.38.43. See https://github.com/iodide-project/pyodide/pull/843#issuecomment-744428471
 - Generate `F2CLIB/libf2c/arith.h` properly instead of setting it to an empty file.
 - Remove a seemingly unnecessary patch (945f06c46e)
2020-12-20 18:30:12 +08:00
casatir 5f8e226d6a
PKG Upgrade matplotlib to v3.3.3 (#886) 2020-12-20 10:37:05 +01:00
casatir 0bc63387f4
PKG Fix Python 3.8 warnings in mpmath (#894) 2020-12-19 19:54:17 +01:00
casatir 4e976df897
yt update (#890) 2020-12-19 00:28:51 +01:00
Nicolas Ollinger e79c1ab238
PKG add scikit-image package (#866)
Co-authored-by: Chigozie Nri <chigozie@gmail.com>
2020-12-16 21:46:27 +01:00
Nicolas Ollinger 3a06f5dfcb
add pillow package (#861) 2020-12-15 10:18:39 +01:00
Dexter Chua 1a0a474f94
Tidy up CLAPACK patches (#862) 2020-12-14 18:04:02 +01:00
Roman Yurchak 3dbb4ebff3
Merge CLAPACK patches together (#856) 2020-12-14 12:05:18 +01:00
Dexter Chua a012a6677b
Add pyodide-interrupt package (#852) 2020-12-14 09:16:13 +01:00
Dexter Chua c7c445e83c
Undo part of CLAPACK patch 0003 (#860) 2020-12-14 09:14:03 +01:00
Dexter Chua 34026265fc
Remove lz4_c patch (#851) 2020-12-13 12:41:22 +01:00
casatir 349567c02e
FIX micropip not getting last version from PyPi (#846)
Co-authored-by: Romain Casati <romain.casati@webati.fr>
2020-12-12 11:47:01 +01:00
Dexter Chua 03447f9fff
Use newer docker image in run_docker (#848) 2020-12-12 11:31:53 +01:00
Roman Yurchak db9f12826f
Split build for core and packages in CI pipeline (#828) 2020-12-11 16:47:47 +01:00
Dexter Chua 861746a675
Build packages in parallel (#840) 2020-12-10 20:37:08 +01:00
Dexter Chua 0defcb3825
BLD Don't compile host python (#830) 2020-12-08 00:19:16 +01:00
Roman Yurchak 411a058d7b
TST Replace test CGI server with pytest-httpserver (#823) 2020-12-06 14:08:22 +01:00
Dexter Chua 3a2719369e
PKG Downgrade parso to 0.7.1 (#822)
This is what jedi 0.17.2 wants
2020-12-05 13:09:46 +01:00
Dexter Chua a780abcae1
PKG Update jedi and parso to 0.17.2 and 0.8.0 resp (#807) 2020-12-03 19:33:13 +01:00
Dexter Chua d67648a6b8
BLD Update package build script's default ldflags (#817) 2020-12-03 14:27:40 +01:00
Dexter Chua 2c97465418
Update SIZEOF_OFF_T to 8 in numpy/config.h (#816)
It was changed from 4 to 8 in emscripten 1.38.31. Before the patch,
compiling numpy gives some warnings about redefining SIZEOF_OFF_T, but
as far as I can tell, it did not cause any real issues.
2020-12-02 14:32:52 +01:00
Roman Yurchak 41b9ad1a7b
Remove threading patches and don't remove multiprocessing module (#796) 2020-11-22 11:25:36 +01:00
Roman Yurchak 8c22c98a43
MAINT Reorganize src/ and tests/ folders (#786) 2020-11-09 13:28:02 +01:00