summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-14 10:15:13 (GMT)
committerGitHub <noreply@github.com>2022-06-14 10:15:13 (GMT)
commitcd543d0bc9aacca1dee02dea7ff4aec8966dcaf8 (patch)
tree4b80616493188acb4a5e9f941bfa3f3bdd5f6e93
parent3cd1a5d3ec487e23e3d976e7dd235329f04cfc73 (diff)
downloadcpython-cd543d0bc9aacca1dee02dea7ff4aec8966dcaf8.zip
cpython-cd543d0bc9aacca1dee02dea7ff4aec8966dcaf8.tar.gz
cpython-cd543d0bc9aacca1dee02dea7ff4aec8966dcaf8.tar.bz2
gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797)
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index fb51026..8da0181 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 ca1b252..c207a81 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