2018-06-20 18:54:47 +00:00
|
|
|
package:
|
|
|
|
name: numpy
|
2021-11-14 14:03:56 +00:00
|
|
|
version: 1.21.4
|
2018-06-20 18:54:47 +00:00
|
|
|
|
|
|
|
source:
|
2021-11-14 14:03:56 +00:00
|
|
|
url: https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip
|
|
|
|
sha256: e6c76a87633aa3fa16614b61ccedfae45b91df2767cf097aa9c933932a7ed1e0
|
2018-06-20 18:54:47 +00:00
|
|
|
|
|
|
|
patches:
|
2021-04-17 21:17:19 +00:00
|
|
|
- patches/segfault-PyArray_Broadcast.patch
|
|
|
|
- patches/segfault-PyArray_PyIntAsIntp.patch
|
2018-06-20 18:54:47 +00:00
|
|
|
- patches/disable-maybe-uninitialized.patch
|
|
|
|
- patches/dont-include-execinfo.patch
|
|
|
|
- patches/fix-longdouble.patch
|
|
|
|
- patches/fix-static-init-of-nditer-pywrap.patch
|
|
|
|
- patches/init-alloc-cache.patch
|
2018-08-20 22:19:25 +00:00
|
|
|
- patches/use-local-blas-lapack.patch
|
2018-08-23 15:59:33 +00:00
|
|
|
- patches/fix-install-with-skip-build.patch
|
2021-01-09 09:44:41 +00:00
|
|
|
- patches/make-int-return-values.patch
|
2021-03-23 21:49:38 +00:00
|
|
|
- patches/fix-ieee754.patch
|
2021-11-14 14:03:56 +00:00
|
|
|
- patches/disable-optimization.patch
|
|
|
|
- patches/not-build-lapack-lite-as-64-bit.patch
|
|
|
|
- patches/fix-invalid-asm-instruction.patch
|
|
|
|
- patches/fix-removed-decorators-module.patch
|
2022-01-16 23:52:34 +00:00
|
|
|
- patches/fix-comparator-function-signatures.patch
|
2018-06-20 18:54:47 +00:00
|
|
|
|
|
|
|
build:
|
2018-10-29 11:52:13 +00:00
|
|
|
skip_host: False
|
2021-06-19 22:49:25 +00:00
|
|
|
# set linker and C flags to error on anything to do with function declarations being wrong.
|
2021-11-04 15:03:22 +00:00
|
|
|
# In webassembly, any conflicts mean that a randomly selected 50% of calls to the function
|
2021-06-19 22:49:25 +00:00
|
|
|
# will fail. Better to fail at compile or link time.
|
|
|
|
cflags: |
|
|
|
|
-include math.h
|
|
|
|
-I $(PYODIDE_ROOT)/packages/numpy/config
|
|
|
|
-Werror=implicit-function-declaration
|
|
|
|
-Werror=mismatched-parameter-types
|
|
|
|
-Werror=mismatched-return-types
|
|
|
|
ldflags: |
|
|
|
|
-Wl,--fatal-warnings
|
2021-02-06 07:58:12 +00:00
|
|
|
post: |
|
|
|
|
# copy the correct numpy config into the build artifacts. Otherwise scipy will try to build with the config
|
|
|
|
# from the build computer and bad things will happen
|
2022-01-24 01:47:04 +00:00
|
|
|
cp config/* $PKGDIR/../.artifacts/lib/python/numpy-1.21.4-py3.9-emscripten_wasm32.egg/numpy/core/include/numpy
|
|
|
|
cp -r $PKGDIR/../.artifacts/lib/python/numpy-1.21.4-py3.9-emscripten_wasm32.egg/numpy $PKGDIR/../.artifacts/lib/python
|
2018-08-03 12:43:40 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
imports:
|
|
|
|
- numpy
|