python / cpython

The Python programming language
https://www.python.org
Other
62.75k stars 30.08k forks source link

Allow inheritance of Venvs #86267

Open eadbd4d3-cbb4-42b8-8420-9f80dcde2bcc opened 3 years ago

eadbd4d3-cbb4-42b8-8420-9f80dcde2bcc commented 3 years ago
BPO 42101
Nosy @Carreau
PRs
  • python/cpython#23504
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['type-feature', '3.10'] title = 'Allow inheritance of Venvs' updated_at = user = 'https://github.com/Carreau' ``` bugs.python.org fields: ```python activity = actor = 'mbussonn' assignee = 'none' closed = False closed_date = None closer = None components = [] creation = creator = 'mbussonn' dependencies = [] files = [] hgrepos = [] issue_num = 42101 keywords = ['patch'] message_count = 1.0 messages = ['379164'] nosy_count = 1.0 nosy_names = ['mbussonn'] pr_nums = ['23504'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue42101' versions = ['Python 3.10'] ```

    eadbd4d3-cbb4-42b8-8420-9f80dcde2bcc commented 3 years ago

    Followup from Python Idea:

    https://mail.python.org/archives/list/python-ideas@python.org/thread/KTIYUEYF6XBHOGOLV744RQXMTETVSTOF/

    Goal would be to allow layering on virtualenv to speedup creation and use less disk space in the case of many large venv having the same base.

    This would be based on an private internal patch that would be upstreamed.

    ncoghlan commented 3 months ago

    Note that even without native interpreter support, environment layering can be supported via a sitecustomize.py file in the inheriting environments.