René's URL Explorer Experiment


Title: gh-162308: Check native extension modules with the target interpreter by superajun-wsj · Pull Request #162311 · python/cpython · GitHub

Open Graph Title: gh-162308: Check native extension modules with the target interpreter by superajun-wsj · Pull Request #162311 · python/cpython

X Title: gh-162308: Check native extension modules with the target interpreter by superajun-wsj · Pull Request #162311 · python/cpython

Description: Fixes #162308. Native builds configured with --with-build-python currently run extension checks in the external build interpreter. If the target builds _bisect as a builtin while the build interpreter has it as a shared extension, the checker reports _bisect is not a built-in module even though the target module imports successfully. Select a dedicated module-check command from configure's cross_compiling state. Native checks run the newly built target Python; cross checks retain the external build Python. Pass the mode explicitly to prevent an inherited _PYTHON_HOST_PLATFORM from skipping native imports. Use this command for both missing-stdlib information generation and the final checks, since both paths call ModuleChecker.check(). This PR is based on #161530 at c7bf53b4d659f6838c3f11044034e139cf01f939 and includes its prerequisite commit with the original author and coauthors preserved. #161530 removes the empty platform marker that previously caused these native builds to skip imports. The additional fix is commit 51fa2643fffc3fc8ab50ba74e92f464c4fb56327. Current main (b09a7e92fb0ab958a52ad94e376402cdd3da09b2) is merged so the PR applies cleanly alongside its RUNSHARED_FOR_BUILD changes. The selected native checker uses RUNSHARED to load the target interpreter's libraries. Validation: Built fresh native CPython 3.16 host and target interpreters, with shared _bisect in the host and builtin _bisect in the target. The original recipe reproduces the import error in both calls; the fixed recipe reports zero import failures, including with an inherited platform marker. A real x86_64-to-AArch64 configure and make all build completed using the external interpreter. All enabled target modules passed the file checks. test_sysconfig, test_build_details, and test_tools.test_makefile passed: 68 tests run, 8 skipped. Autoconf 2.72 regeneration, workflow YAML and shell syntax, patch whitespace, and clean application of both commits were verified. The local native build lacks optional _decimal and _zstd dependencies; the cross sysroot lacks 17 optional module dependencies. These are reported as missing; all enabled modules have zero import/check failures. The added GitHub Actions regression job has not yet run on GitHub. Prepared with assistance from TRAE CLI. The change was checked against the actual native and cross build paths described above. Issue: gh-162308

Open Graph Description: Fixes #162308. Native builds configured with --with-build-python currently run extension checks in the external build interpreter. If the target builds _bisect as a builtin while the build interpre...

X Description: Fixes #162308. Native builds configured with --with-build-python currently run extension checks in the external build interpreter. If the target builds _bisect as a builtin while the build interpre...

Opengraph URL: https://github.com/python/cpython/pull/162311

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:84480697-7fd0-5df3-97a2-6d928d634e31
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD888:11EACE:322BEA3:42FEC56:6B01EFD4
html-safe-nonce5d10d5c77458a437c0eabf288c06b88b0a31d117b7d2cb387dd6848a24cbc934
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODg4OjExRUFDRTozMjJCRUEzOjQyRkVDNTY6NkIwMUVGRDQiLCJ2aXNpdG9yX2lkIjoiNTE5MjgzODk2ODQ2MjQwNTU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac30bbfab15b7ad22c6867000e55f9cb3027416447181dc307a60b962ec65afef7
hovercard-subject-tagpull_request:5410757970
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/162311/files
twitter:imagehttps://avatars.githubusercontent.com/u/54900261?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/54900261?s=400&v=4
og:image:altFixes #162308. Native builds configured with --with-build-python currently run extension checks in the external build interpreter. If the target builds _bisect as a builtin while the build interpre...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/162311/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162311%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162311%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/162311/files
Reloadhttps://github.com/python/cpython/pull/162311/files
Reloadhttps://github.com/python/cpython/pull/162311/files
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
superajun-wsjhttps://github.com/superajun-wsj
python:mainhttps://github.com/python/cpython/tree/main
superajun-wsj:fix/gh-162308-native-module-checkhttps://github.com/superajun-wsj/cpython/tree/fix/gh-162308-native-module-check
Conversation 1 https://github.com/python/cpython/pull/162311
Commits 3 https://github.com/python/cpython/pull/162311/commits
Checks 56 https://github.com/python/cpython/pull/162311/checks
Files changed https://github.com/python/cpython/pull/162311/files
Please reload this pagehttps://github.com/python/cpython/pull/162311/files
gh-162308: Check native extension modules with the target interpreter https://github.com/python/cpython/pull/162311/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/162311/files
c7bf53b gh-140266: Only pass _PYTHON_HOST_PLATFORM when cross compiling itamaro Nov 7, 2026 https://github.com/python/cpython/pull/162311/commits/c7bf53b4d659f6838c3f11044034e139cf01f939
51fa264 gh-162308: Check native extension modules with the target Python superajun-wsj Nov 20, 2026 https://github.com/python/cpython/pull/162311/commits/51fa2643fffc3fc8ab50ba74e92f464c4fb56327
6701ab0 Merge upstream main and retain native module-check selection superajun-wsj Nov 20, 2026 https://github.com/python/cpython/pull/162311/commits/6701ab01fa39a83d834eccb545ba629f78cd4a9c
Clear filters https://github.com/python/cpython/pull/162311/files
Please reload this pagehttps://github.com/python/cpython/pull/162311/files
Please reload this pagehttps://github.com/python/cpython/pull/162311/files
build.yml https://github.com/python/cpython/pull/162311/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
Makefile.pre.in https://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
2026-11-06-12-00-00.gh-issue-140266.K3hP9z.rst https://github.com/python/cpython/pull/162311/files#diff-19606781229285719b760b6fc34c2ab104b510717af6284d2e26d6d591c9655e
2026-11-20-16-30-00.gh-issue-162308.Mk7pQ2.rst https://github.com/python/cpython/pull/162311/files#diff-d50f86c4e5fe894a378715962afd46bc7a398f14afec65983e2fd46cc4c74587
configure https://github.com/python/cpython/pull/162311/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
configure.ac https://github.com/python/cpython/pull/162311/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L66
.github/workflows/build.ymlhttps://github.com/python/cpython/pull/162311/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/.github/workflows/build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/162311/{{ revealButtonHref }}
https://github.com/python/cpython/pull/162311/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
https://github.com/python/cpython/pull/162311/files#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L85
Makefile.pre.inhttps://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/Makefile.pre.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/162311/{{ revealButtonHref }}
https://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/162311/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
Misc/NEWS.d/next/Build/2026-11-06-12-00-00.gh-issue-140266.K3hP9z.rsthttps://github.com/python/cpython/pull/162311/files#diff-19606781229285719b760b6fc34c2ab104b510717af6284d2e26d6d591c9655e
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/Misc/NEWS.d/next/Build/2026-11-06-12-00-00.gh-issue-140266.K3hP9z.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/162311/{{ revealButtonHref }}
Misc/NEWS.d/next/Build/2026-11-20-16-30-00.gh-issue-162308.Mk7pQ2.rsthttps://github.com/python/cpython/pull/162311/files#diff-d50f86c4e5fe894a378715962afd46bc7a398f14afec65983e2fd46cc4c74587
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/Misc/NEWS.d/next/Build/2026-11-20-16-30-00.gh-issue-162308.Mk7pQ2.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/162311/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84
configurehttps://github.com/python/cpython/pull/162311/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/configure
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/162311/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84
configure.achttps://github.com/python/cpython/pull/162311/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
View file https://github.com/superajun-wsj/cpython/blob/6701ab01fa39a83d834eccb545ba629f78cd4a9c/configure.ac
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/162311/{{ revealButtonHref }}
https://github.com/python/cpython/pull/162311/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
https://github.com/python/cpython/pull/162311/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
https://github.com/python/cpython/pull/162311/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
Please reload this pagehttps://github.com/python/cpython/pull/162311/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.