Skip to content

[3.15] gh-158986: Fix module classification for nested site-packages (GH-158993) - #162546

Merged
pablogsal merged 1 commit into
python:3.15from
pablogsal:backport-158993-315-original-20261124
Nov 24, 2026
Merged

pablogsal merged 1 commit into
python:3.15from
pablogsal:backport-158993-315-original-20261124

Conversation

@pablogsal

@pablogsal pablogsal commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Backport #158993 to Python 3.15. I cherry-picked the contributor’s original commit because the squash changed its author email. The patch matches #162545.

…ackages

extract_module_name() checked the stdlib directory first, so files in a
site-packages directory inside it were reported as stdlib modules. Use
the most specific matching directory instead.

(cherry picked from commit f39970d)
@pablogsal

Copy link
Copy Markdown
Member Author

LGTM, thanks for bringing this to 3.15!

@pablogsal
pablogsal enabled auto-merge (squash) November 24, 2026 12:37
@pablogsal
pablogsal merged commit 0544c90 into python:3.15 Nov 24, 2026
56 checks passed
@pablogsal
pablogsal deleted the backport-158993-315-original-20261124 branch November 24, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants