From cd543d0bc9aacca1dee02dea7ff4aec8966dcaf8 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 14 Jun 2022 12:15:13 +0200 Subject: [PATCH] gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797) --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index fb510267b69..8da0181ef3c 100755 --- a/configure +++ b/configure @@ -6782,7 +6782,7 @@ else fi ;; #( WASI/*) : - HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt) --mapdir /::$(srcdir) --' ;; #( + HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --mapdir /::$(srcdir) --' ;; #( *) : HOSTRUNNER='' ;; diff --git a/configure.ac b/configure.ac index ca1b2528f88..c207a814fcf 100644 --- a/configure.ac +++ b/configure.ac @@ -1492,7 +1492,7 @@ then dnl TODO: support other WASI runtimes dnl wasmtime starts the proces with "/" as CWD. For OOT builds add the dnl directory containing _sysconfigdata to PYTHONPATH. - [WASI/*], [HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt) --mapdir /::$(srcdir) --'], + [WASI/*], [HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --mapdir /::$(srcdir) --'], [HOSTRUNNER=''] ) fi