pyodide/packages/numcodecs/meta.yaml

21 lines
485 B
YAML
Raw Normal View History

2020-12-24 17:15:35 +00:00
package:
name: numcodecs
2022-01-10 19:54:11 +00:00
version: 0.9.1
2020-12-24 17:15:35 +00:00
source:
2022-01-10 19:54:11 +00:00
sha256: 35adbcc746b95e3ac92e949a161811f5aa2602b9eb1ef241b5ea6f09bb220997
url: https://files.pythonhosted.org/packages/2c/b0/980143fa7467569fd81f0d00530c46dcf41ff790738261985dc10a26d4ec/numcodecs-0.9.1.tar.gz
2020-12-24 17:15:35 +00:00
patches:
2022-01-10 19:54:11 +00:00
- patches/fixblosc.patch
- patches/fixsetup.patch
- patches/fixzlib.patch
Use pypa/build (#2272) This resolves #2189. > build isolation would be a bit difficult to use in our case, as for instance > when building scipy we need the patched numpy on the host and not the numpy > version specified in pyproject.toml (which would be unpatched) This is indeed the case, certain packages cannot be isolated. My strategy is to make a list of packages that shouldn't be isolated and add symlinks from the isolated build environment into the `.artifacts` directory to "unisolate" them. Then we remove the unisolated package requirements from the list of packages to install, in case pesky constraints aren't satisfied. In particular, packages that expect to be used with `pypa/build` often feel free to put very specific constraints on their build dependencies (often asking them to be == to a particular version). Specific version constraints is good for build reproducibility and with build isolation doesn't cost anything. So we just ignore the constraints. Hopefully nothing goes wrong. In particular, any package that does stuff both at build time and at runtime and requires synchronization between the build time and run time environments needs the unisolation. This includes cffi with `_cffi_backend.so`, and of course numpy and scipy. pycparser needs to be unisolated because it is a dependency of cffi. Currently I have also unisolated pythran and cython, though these are build time only tools and do not really need to be unisolated. Cython I unisolated specifically because numcodecs needs it but it isn't in the numcodecs build dependencies. Pythran I unisolated because of a problem with the scipy build which I don't fully understand (some problem with long double feature detection).
2022-03-22 05:05:30 +00:00
build:
script: |
rm numcodecs/blosc.c
2020-12-24 17:15:35 +00:00
requirements:
run:
2022-01-10 19:54:11 +00:00
- numpy
- msgpack
2020-12-24 17:15:35 +00:00
test:
imports:
2022-01-10 19:54:11 +00:00
- numcodecs