-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-venvRelated to the venv moduleRelated to the venv moduletype-featureA feature request or enhancementA feature request or enhancement
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
venvto start setting thebase-prefixandbase-exec-prefixkeys inpyvenv.cfgwhen creating/updating environments - In
getpath, use thebase-prefixandbase-exec-prefixkeys 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
CharlieZhao95, pelson and arrdem
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-venvRelated to the venv moduleRelated to the venv moduletype-featureA feature request or enhancementA feature request or enhancement