Open
Description
Feature or enhancement
Proposal:
The home
key in pyvenv.cfg
is used to specify the directory where the base Python executable is. During the Path Initialization, this directory, and consecutively its parents, is searched for stdlib landmarks to determine sys.base_prefix
and sys.base_exec_prefix
. Naturally, this isn't ideal, it would be better if pyvenv.cfg
contained these values directly.
Proposed plan:
- Update
venv
to start setting thebase-prefix
andbase-exec-prefix
keys inpyvenv.cfg
when creating/updating environments - In
getpath
, use thebase-prefix
andbase-exec-prefix
keys to set the prefixes - Deprecate specifying
home
, inpyvenv.cfg
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response