Skip to content

Commit

Permalink
Merge pull request #128 from vmware-labs/fix-libpython
Browse files Browse the repository at this point in the history
fix: libpython and targets for python docker images
  • Loading branch information
assambar authored Dec 11, 2023
2 parents dfe7887 + 844204a commit 040d5a6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions python/v3.12.0/wlr-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 040d5a6

Please sign in to comment.