FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

pth files in site-packages of venvs are executed twice · Issue #75723 · python/cpython · GitHub

Repository navigation

pth files in site-packages of venvs are executed twice #75723

Description

mannequin
BPO 31542
Nosy @anntzer, @wimglenn, @sinoroc

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:

assignee = None
closed_at = None
created_at = <Date 2017-09-21.09:41:38.759>
labels = ['library']
title = 'pth files in site-packages of venvs are executed twice'
updated_at = <Date 2020-02-20.11:02:15.996>
user = 'https://github.com/anntzer'

bugs.python.org fields:

activity = <Date 2020-02-20.11:02:15.996>
actor = 'sinoroc'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-09-21.09:41:38.759>
creator = 'Antony.Lee'
dependencies = []
files = []
hgrepos = []
issue_num = 31542
keywords = []
message_count = 2.0
messages = ['302678', '362308']
nosy_count = 3.0
nosy_names = ['Antony.Lee', 'wim.glenn', 'sinoroc']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue31542'
versions = ['Python 3.6']

Linked PRs

Activity

  1. anntzer commented on Sep 21, 2017

    anntzermannequin
    MannequinAuthor

    All's in the title: "pth files in site-packages of venvs are executed twice". For example, the following code sample prints "1" twice.

    python -mvenv /tmp/tmpenv
    echo 'import os; print(1)' >/tmp/tmpenv/lib/python3.6/site-packages/foo.pth
    source activate /tmp/tmpenv
    python

    This behavior is different from the one for a pth file in a non-venv site-packages (either the syswide prefix, or the user prefix), which is only executed once.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Sep 21, 2017
  3. sinoroc commented on Feb 20, 2020

    sinorocmannequin
    Mannequin
  4. transferred this issue fromon Apr 10, 2022
  5. added
    type-bugAn unexpected behavior, bug, or error
    on Apr 2, 2026
  6. added
    3.13only security fixes
    3.14bugs and security fixes
    3.15pre-release feature fixes, bugs and security fixes
    on Apr 5, 2026
  7. warsaw commented on May 8, 2026

    Member

    @asottile It's funny, weird, and scary that my YT algorithm presented me with your video on this right about the time you tagged us on this ticket!

  8. self-assigned this
    on May 8, 2026
  9. added a commit that references this issue on May 11, 2026
  10. added a commit that references this issue on May 15, 2026
  11. added 2 commits that reference this issue on May 21, 2026
  12. tcely commented on May 22, 2026

    @warsaw After your latest commits; what's left outstanding for this issue?

  13. warsaw commented on May 22, 2026

    Member

    Thanks for the ping @tcely - I think we can close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only security fixes3.14bugs and security fixes3.15pre-release feature fixes, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL