From 844204a6f2dc02d1012f0accbbcc8da72d7477a5 Mon Sep 17 00:00:00 2001 From: Asen Alexandrov Date: Mon, 11 Dec 2023 12:09:09 +0200 Subject: [PATCH] fix: libpython and targets for python docker images --- Makefile | 24 ++++++++++++++++++++++++ python/v3.12.0/wlr-build.sh | 1 + 2 files changed, 25 insertions(+) diff --git a/Makefile b/Makefile index e515d2d..95e0880 100644 --- a/Makefile +++ b/Makefile @@ -77,6 +77,30 @@ oci-python-3.11.4-wasmedge: python/v3.11.4-wasmedge -f images/python/Dockerfile \ build-output +.PHONY: oci-python-3.12.0 +oci-python-3.12.0: python/v3.12.0 + docker build \ + --platform wasi/wasm32 \ + --build-arg NAME=python-wasm \ + --build-arg SUMMARY="CPython built for WASI, by Wasm Labs" \ + --build-arg ARTIFACTS_BASE_DIR=python/v3.12.0 \ + --build-arg PYTHON_BINARY=python-3.12.0.wasm \ + -t ghcr.io/vmware-labs/python-wasm:3.12.0 \ + -f images/python/Dockerfile \ + build-output + +.PHONY: oci-python-3.12.0-wasmedge +oci-python-3.12.0-wasmedge: python/v3.12.0-wasmedge + docker build \ + --platform wasi/wasm32 \ + --build-arg NAME=python-wasm \ + --build-arg SUMMARY="CPython built for WASI+WasmEdge, by Wasm Labs" \ + --build-arg ARTIFACTS_BASE_DIR=python/v3.12.0-wasmedge \ + --build-arg PYTHON_BINARY=python-3.12.0.wasm \ + -t ghcr.io/vmware-labs/python-wasm:3.12.0-wasmedge \ + -f images/python/Dockerfile \ + build-output + LIBS := \ bzip2 \ icu \ diff --git a/python/v3.12.0/wlr-build.sh b/python/v3.12.0/wlr-build.sh index fdca510..b50d81b 100644 --- a/python/v3.12.0/wlr-build.sh +++ b/python/v3.12.0/wlr-build.sh @@ -114,6 +114,7 @@ addlib ${WLR_DEPS_ROOT}/build-output/lib/wasm32-wasi/libsqlite3.a addlib ${WLR_DEPS_ROOT}/build-output/lib/wasm32-wasi/libuuid.a addlib Modules/expat/libexpat.a addlib Modules/_decimal/libmpdec/libmpdec.a +addlib Modules/_hacl/libHacl_Hash_SHA2.a save end EOF