[Python-checkins] [3.11] gh-90473: Define HOSTRUNNER for WASI (GH-93606) (GH-93612)
tiran
webhook-mailer at python.org
Wed Jun 8 16:21:08 EDT 2022
https://github.com/python/cpython/commit/1b7942acb2cc31d65bba6be9be906433121d457e
commit: 1b7942acb2cc31d65bba6be9be906433121d457e
branch: 3.11
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2022-06-08T22:21:04+02:00
summary:
[3.11] gh-90473: Define HOSTRUNNER for WASI (GH-93606) (GH-93612)
(cherry picked from commit 22df2e0322300d25c1255ceb73cacc0ebd96b20e)
Co-authored-by: Christian Heimes <christian at python.org>
files:
M configure
M configure.ac
diff --git a/configure b/configure
index e91d04b3b6621..2ad709ca5492b 100755
--- a/configure
+++ b/configure
@@ -6688,6 +6688,8 @@ else
fi
;; #(
+ WASI/*) :
+ HOSTRUNNER='wasmtime run --env PYTHONPATH=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --' ;; #(
*) :
HOSTRUNNER=''
;;
diff --git a/configure.ac b/configure.ac
index 2e2e24ceca93b..c1ea163e4461e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1424,6 +1424,10 @@ then
HOSTRUNNER='node'
])
],
+ 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=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --'],
[HOSTRUNNER='']
)
fi
More information about the Python-checkins
mailing list