Skip to content

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

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

itamaro merged 1 commit into
python:3.14from
itamaro:backport-cc056ab-3.14

Conversation

@itamaro

@itamaro itamaro 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. Cross builds continue to
use the external build Python without importing target modules.

(cherry picked from commit cc056ab)

Co-authored-by: Jeffery wangshaojun.jeffery@bytedance.com

…t interpreter (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. Cross builds continue to
use the external build Python without importing target modules.

(cherry picked from commit cc056ab)

Co-authored-by: Jeffery <wangshaojun.jeffery@bytedance.com>
@itamaro
itamaro force-pushed the backport-cc056ab-3.14 branch from ba99323 to bcb4cc2 Compare November 24, 2026 16:50
@itamaro
itamaro enabled auto-merge (squash) November 24, 2026 17:04
@itamaro
itamaro merged commit 796ff8b into python:3.14 Nov 24, 2026
49 checks passed
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