Skip to content

[3.15] gh-162308: Check native extension modules with the target interpreter (GH-162311) - #162560

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-cc056ab-3.15
Nov 24, 2026
Merged

itamaro merged 1 commit into
python:3.15from
miss-islington:backport-cc056ab-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

In native builds configured with --with-build-python, checksharedmods
uses the external build Python and can incorrectly report that a module
built into the target Python failed to import.

Use the newly built Python for extension checks and for generating
missing-stdlib information. Cross builds continue to use the external
build Python without importing target modules or adding the target
library path.
(cherry picked from commit cc056ab)

Co-authored-by: Jeffery 54900261+superajun-wsj@users.noreply.github.com

@python-cla-bot

python-cla-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

…preter (pythonGH-162311)

In native builds configured with `--with-build-python`, `checksharedmods`
uses the external build Python and can incorrectly report that a module
built into the target Python failed to import.

Use the newly built Python for extension checks and for generating
missing-stdlib information. Cross builds continue to use the external
build Python without importing target modules or adding the target
library path.
(cherry picked from commit cc056ab)

Co-authored-by: Jeffery <wangshaojun.jeffery@bytedance.com>
@itamaro
itamaro force-pushed the backport-cc056ab-3.15 branch from 629f2c4 to 1244f9d Compare November 24, 2026 16:14
@itamaro
itamaro enabled auto-merge (squash) November 24, 2026 16:51
@itamaro
itamaro merged commit 3f5b4fa into python:3.15 Nov 24, 2026
54 checks passed
@miss-islington
miss-islington deleted the backport-cc056ab-3.15 branch November 24, 2026 16:55
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.

3 participants