mirror of https://github.com/python/cpython
gh-90473: Include stdlib dir in wasmtime PYTHONPATH (GH-93797)
This commit is contained in:
parent
3cd1a5d3ec
commit
cd543d0bc9
|
@ -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=''
|
||||
;;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue