New submission from Ilya Kulakov:
There are 2 venvs. One has the pkg_resources (pkgr_venv) package installed,
another (venv) doesn't.
Venv without pkg_resources is currently active.
Works: $ <pkgr_venv>/python -c "import pkg_resources"
Doesn't work: $ python -c "import subprocess;
subprocess.check_call(['<pkgr_venv>/python', '-c', 'import pkg_resources'])"
Works: $ python -c "import os, subprocess; env = os.environ.copy();
env.pop('__PYVENV_LAUNCHER__'); subprocess.check_call(['< pkgr_venv>/python',
'-c', 'import pkg_resources'], env=env)"
----------
messages: 301454
nosy: Ilya.Kulakov
priority: normal
severity: normal
status: open
title: __PYVENV_LAUNCHER__ breaks calling another venv's interpreter
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue31363>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com