You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The target debug information reports PYTHONPATH entries in sys.path #3473
get_env_debug_info in src/virtualenv/create/creator.py copies the environment and removes PYTHONPATH from the copy, but then calls run_cmd(cmd) without that copy. run_cmd starts the process with the inherited environment, so the debug interpreter still sees PYTHONPATH. The environment passed to cli_run(env=...) is also not used for this process.
As a result, the target debug section of virtualenv -vv and Creator.debug list the caller's PYTHONPATH entries in the new environment's sys.path, which a plain run of the environment's interpreter without PYTHONPATH does not have.
Activity