Skip to content

Commit 8d19acf

Browse files
committed
pass the sys prefix when creating a venv
1 parent 2fd98a1 commit 8d19acf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/lib-python/3/venv/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,10 @@ def replace_variables(self, text, context):
326326
# Truffle change: we need to set some extra options for the launcher to work
327327
text = text.replace(
328328
'__VENV_GRAAL_PYTHON_OPTIONS__',
329-
"--python.CoreHome='%s' --python.StdLibHome='%s' --python.Executable='%s'" % (
329+
"--python.CoreHome='%s' --python.StdLibHome='%s' --python.SysPrefix='%s' --python.Executable='%s'" % (
330330
sys.graal_python_core_home,
331331
sys.graal_python_stdlib_home,
332+
sys.prefix,
332333
context.env_exe,
333334
)
334335
)

0 commit comments

Comments
 (0)