Skip to content

Stabilise the venv no-distutils-patch preview feature #20791

Closed

Description

@edmorley

In #20222 the venv distutils monkeypatch (_virtualenv.pth) is now skipped if on Python 3.10+, but only when the preview feature no-distutils-patch is enabled.

This preview feature was first released in 0.11.29, though missed being stabilised in 0.12 presumably because it landed 2 days after the provisional stabilisation list was drafted in #20185.

Filing this to track its stabilisation in a future major release :-)

Activity

  1. changed the title [-]Stabilise the venv `no-distutils-patch` prevew feature[/-] [+]Stabilise the venv `no-distutils-patch` preview feature[/+] on Jul 29, 2026
  2. added this to the v0.13.0 milestone on Jul 29, 2026
  3. zanieb commented on Jul 29, 2026

    @zanieb
    Member

    Yeah I prefer changes go through a longer stabilization period. We can do this in the next breaking release though.

  4. edmorley commented on Jul 29, 2026

    @edmorley
    ContributorAuthor

    Yeah makes sense! 0.13 sounds great, thank you 💜

  5. konstin commented on Aug 6, 2026

    @konstin
    Member

    If we can make a case that this patch is some sort of problem, we can stabilize outside of a breaking release, virtualenv also already shipped this successfully.

  6. added a commit that references this issue on Sep 30, 2026
    364eca4
  7. added a commit that references this issue on Oct 1, 2026
    09d3cdc
  8. added a commit that references this issue on Oct 7, 2026
    796c5ea
  9. added 2 commits that reference this issue on Oct 9, 2026
    6aa263d
    79e0446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    previewExperimental behavior

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址