Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add changelog
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Feb 21, 2020
commit 3211a2f16b850751a5482ae12390ec888dd076c6
2 changes: 2 additions & 0 deletions docs/changelog/1643.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix cross interpreter support when the host python sets ``sys.base_executable`` based on ``__PYVENV_LAUNCHER__`` -
by :user:`cjolowicz`
4 changes: 2 additions & 2 deletions src/virtualenv/discovery/cached_py_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def _get_fs_path():
def _run_subprocess(cls, exe):
resolved_path = Path(os.path.abspath(__file__)).parent / "py_info.py"
with ensure_file_on_disk(resolved_path) as resolved_path:
cmd = [exe, "-s", str(resolved_path)]

# Prevent sys.prefix from leaking into the child process.
cmd = [exe, "-s", str(resolved_path)]
# prevent sys.prefix from leaking into the child process - see https://bugs.python.org/issue22490
env = os.environ.copy()
env.pop("__PYVENV_LAUNCHER__", None)

Expand Down