package: name: numpy version: 1.21.4 source: url: https://files.pythonhosted.org/packages/fb/48/b0708ebd7718a8933f0d3937513ef8ef2f4f04529f1f66ca86d873043921/numpy-1.21.4.zip sha256: e6c76a87633aa3fa16614b61ccedfae45b91df2767cf097aa9c933932a7ed1e0 patches: - 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 - patches/use-local-blas-lapack.patch - patches/make-int-return-values.patch - patches/fix-ieee754.patch - patches/disable-optimization.patch - patches/not-build-lapack-lite-as-64-bit.patch - patches/fix-invalid-asm-instruction.patch - patches/fix-comparator-function-signatures.patch - patches/fix-random_float_fill-return-type.patch - patches/fix-math-feature-detection-for-wasm.patch build: cflags: | -Wno-return-type post: | python -m pip install --prefix $HOSTINSTALLDIR numpy==$PKG_VERSION # 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 export NUMPY_LIB_PATH=$HOSTINSTALLDIR/lib/python$PYMAJOR.$PYMINOR/site-packages/numpy/core/include/numpy/ cp build/numpy-$PKG_VERSION/build/src.emscripten_wasm32-$PYMAJOR.$PYMINOR/numpy/core/include/numpy/*config.h $NUMPY_LIB_PATH # static libraries for other packages to link mkdir -p $NUMPY_LIB find $SRC_DIR -name '*.a' | sed "s:.*:cp \0 $NUMPY_LIB:g" | bash test: imports: - numpy