René's URL Explorer Experiment


Title: PEP-739 build-details generation is incorrect when cross-building · Issue #136267 · python/cpython · GitHub

Open Graph Title: PEP-739 build-details generation is incorrect when cross-building · Issue #136267 · python/cpython

X Title: PEP-739 build-details generation is incorrect when cross-building · Issue #136267 · python/cpython

Description: Bug report Bug description: When doing cross-builds, the PEP-739 build-details.json gets generated using inconsistent data, some of which based on the build python, and some from the target platform python. See for example the following ...

Open Graph Description: Bug report Bug description: When doing cross-builds, the PEP-739 build-details.json gets generated using inconsistent data, some of which based on the build python, and some from the target platfor...

X Description: Bug report Bug description: When doing cross-builds, the PEP-739 build-details.json gets generated using inconsistent data, some of which based on the build python, and some from the target platfor...

Opengraph URL: https://github.com/python/cpython/issues/136267

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP-739 build-details generation is incorrect when cross-building","articleBody":"# Bug report\n\n### Bug description:\n\nWhen doing cross-builds, the PEP-739 `build-details.json` gets generated using inconsistent data, some of which based on the build python, and some from the target platform python.\n\nSee for example the following gist:\nhttps://gist.github.com/itamaro/8f23ebec2e142fd7480241b76c16c4e0\n\nThe gist contains the `build-details.json` generated for a 3.15 GIL-disabled build, using a 3.15 GIL-enabled build as the build-python.\n\n## Concretely:\n\n```sh\ncd ~/pybuild/python/main-default\n./configure --with-pydebug\nmake -j\n\ncd ~/pybuild/python/main-nogil\n./configure --with-pydebug --disable-gil\nmake -j\n\n# now use the GIL-enabled python to regenerate build-details.json for the nogil build\n_PYTHON_PROJECT_BASE=. _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_td_darwin_darwin _PYTHON_SYSCONFIGDATA_PATH=build/lib.macosx-14.5-arm64-3.15 ~/pybuild/python/main-default/python.exe -E Tools/build/generate-build-details.py /tmp/build-details.json\n```\n\n## Some examples from the gist:\n\nIncorrect - `abi.flags` is `[\"d\"]` instead of `[\"t\", \"d\"]`:\n\n```json\n  \"abi\": {\n    \"flags\": [\n      \"d\"\n    ]\n  },\n```\n\nCorrect - `libpython.static` has the correct SOABI, including `t`:\n\n```json\n  \"libpython\": {\n    \"static\": \"/usr/local/lib/libpython3.15td.a\"\n  },\n```\n\nIncorrect - `suffixes.extensions` includes extensions for the GIL-enabled ABI:\n\n```json\n    \"extensions\": [\n      \".cpython-315d-darwin.so\",\n      \".cpython-315-darwin.so\",\n      \".abi3.so\",\n      \".so\"\n    ]\n```\n\n## Notes\n\nI used a \"cross-build\" on the same MacOS host here, with GIL enabled vs GIL disabled, because it was the easiest for a full end-to-end repro on a single machine.\nThe issue is more general though, as I originally observed it when generating `build-info.json` files for a MacOS-target runtime (both GIL enabled and disabled) using a Linux-GIL-enabled build-python. That setup is more involved, but the mixing is also more apparent, with some fields using \"darwin\" and other fields using \"linux-gnu-x86_64\" as the multiarch string.\n\n### CPython versions tested on:\n\nCPython main branch, 3.15, 3.14\n\n### Operating systems tested on:\n\nmacOS, Linux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161529\n* gh-161532\n* gh-162239\n* gh-162240\n* gh-162301\n* gh-162302\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/itamaro","@type":"Person","name":"itamaro"},"datePublished":"2025-07-04T04:09:45Z","url":"https://github.com/python/cpython/issues/136267"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:94294d83-b4fe-bdf5-1f15-8c244aff7bf0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDEE4:399E4B:3421263:4532007:6B01EED9
html-safe-nonce5ef13b630dc657be471b0059bb79fafe8f5621595d67e03e76da9591f4df4cb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUU0OjM5OUU0QjozNDIxMjYzOjQ1MzIwMDc6NkIwMUVFRDkiLCJ2aXNpdG9yX2lkIjoiNjE5MTI5NzA5ODE2NDU5NjQ0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac38cbed343f08cdd46faf256d5b21424660ad33bc43ff0eda9bea4ea894767e05
hovercard-subject-tagissue:3201245669
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/136267/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6493060e6ccfcce5249cf242de8c5365d752e91a6d31b87126b69d19c0be149d/python/cpython/issues/136267
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6493060e6ccfcce5249cf242de8c5365d752e91a6d31b87126b69d19c0be149d/python/cpython/issues/136267
og:image:altBug report Bug description: When doing cross-builds, the PEP-739 build-details.json gets generated using inconsistent data, some of which based on the build python, and some from the target platfor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameitamaro
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
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
disable-turbofalse
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
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/136267#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F136267
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%2Fissues%2F136267
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/136267
Reloadhttps://github.com/python/cpython/issues/136267
Reloadhttps://github.com/python/cpython/issues/136267
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
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/136267
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/136267
PEP-739 build-details generation is incorrect when cross-buildinghttps://github.com/python/cpython/issues/136267#top
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/itamaro
itamarohttps://github.com/itamaro
on Jul 4, 2025https://github.com/python/cpython/issues/136267#issue-3201245669
PEP-739https://peps.python.org/739
https://gist.github.com/itamaro/8f23ebec2e142fd7480241b76c16c4e0https://gist.github.com/itamaro/8f23ebec2e142fd7480241b76c16c4e0
gh-136267: Use the target configuration in build-details.json #161529https://github.com/python/cpython/pull/161529
gh-136267: Read the target version from patchlevel.h in build-details.json #161532https://github.com/python/cpython/pull/161532
[3.15] gh-136267: Use the target configuration in build-details.json (GH-161529) #162239https://github.com/python/cpython/pull/162239
[3.14] gh-136267: Use the target configuration in build-details.json (GH-161529) #162240https://github.com/python/cpython/pull/162240
[3.15] gh-136267: Read the target version from patchlevel.h in build-details.json (GH-161532) #162301https://github.com/python/cpython/pull/162301
[3.14] gh-136267: Read the target version from patchlevel.h in build-details.json (GH-161532) #162302https://github.com/python/cpython/pull/162302
itamarohttps://github.com/itamaro
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
needs backport to 3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
on Jul 4, 2025https://github.com/python/cpython/issues/136267#event-18463864813
StanFromIrelandhttps://github.com/StanFromIreland
needs backport to 3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
on Jul 4, 2025https://github.com/python/cpython/issues/136267#event-18464688369
https://github.com/Zheaoli
Zheaolihttps://github.com/Zheaoli
on Jul 4, 2025https://github.com/python/cpython/issues/136267#issuecomment-3036397808
Zheaoli@f7bfb6chttps://github.com/Zheaoli/cpython/commit/f7bfb6cc1f73964a45af00d2ed20850305f69e8b
https://github.com/itamaro
itamarohttps://github.com/itamaro
on Jul 13, 2025https://github.com/python/cpython/issues/136267#issuecomment-3067280087
@FFY00https://github.com/FFY00
AA-Turnerhttps://github.com/AA-Turner
Crossbuild: sys.implementation and build-details.json #135785https://github.com/python/cpython/issues/135785
on Sep 16, 2025https://github.com/python/cpython/issues/136267#event-19725867592
https://github.com/AA-Turner
AA-Turnerhttps://github.com/AA-Turner
on Sep 16, 2025https://github.com/python/cpython/issues/136267#issuecomment-3298593443
@sobolevnhttps://github.com/sobolevn
#135785https://github.com/python/cpython/issues/135785
#135667https://github.com/python/cpython/pull/135667
https://github.com/FFY00
FFY00https://github.com/FFY00
on Oct 4, 2025https://github.com/python/cpython/issues/136267#issuecomment-3368285831
@FFY00https://github.com/FFY00
https://github.com/geofft
geoffthttps://github.com/geofft
on Oct 17, 2025https://github.com/python/cpython/issues/136267#issuecomment-3416849622
astral-sh/python-build-standalone#816https://github.com/astral-sh/python-build-standalone/issues/816
#140266https://github.com/python/cpython/issues/140266
https://github.com/manueljacob
manueljacobhttps://github.com/manueljacob
on Apr 7, 2026https://github.com/python/cpython/issues/136267#issuecomment-4195800357
#90067https://github.com/python/cpython/issues/90067
https://github.com/mgorny
mgornyhttps://github.com/mgorny
on Aug 13, 2026https://github.com/python/cpython/issues/136267#issuecomment-5282972611
itamarohttps://github.com/itamaro
on Nov 18, 2026https://github.com/python/cpython/issues/136267#event-36579600886
gh-136267: Use the target configuration in build-details.json (#161529)https://github.com/python/cpython/commit/fb9330bbacb39c847bd3a2d5437836a04e10ad14
gh-136267https://github.com/python/cpython/issues/136267
#161529https://github.com/python/cpython/pull/161529
fb9330bhttps://github.com/python/cpython/commit/fb9330bbacb39c847bd3a2d5437836a04e10ad14
[3.15] gh-136267: Use the target configuration in build-details.json (G…https://github.com/python/cpython/commit/2136a891aadfbacfcd2da06e03a6774d18b2fc22
gh-136267https://github.com/python/cpython/issues/136267
G…https://github.com/python/cpython/pull/161529
2136a89https://github.com/python/cpython/commit/2136a891aadfbacfcd2da06e03a6774d18b2fc22
[3.14] gh-136267: Use the target configuration in build-details.json (G…https://github.com/python/cpython/commit/2759619c8590d208c0ac54320e1be214caa54d89
gh-136267https://github.com/python/cpython/issues/136267
G…https://github.com/python/cpython/pull/161529
2759619https://github.com/python/cpython/commit/2759619c8590d208c0ac54320e1be214caa54d89
gh-136267: Read the target version from patchlevel.h in build-details…https://github.com/python/cpython/commit/b09a7e92fb0ab958a52ad94e376402cdd3da09b2
gh-136267https://github.com/python/cpython/issues/136267
b09a7e9https://github.com/python/cpython/commit/b09a7e92fb0ab958a52ad94e376402cdd3da09b2
[3.15] gh-136267: Read the target version from patchlevel.h in build-…https://github.com/python/cpython/commit/a37c337ff97cb4c49eba29e34d3c42b99a44b673
gh-136267https://github.com/python/cpython/issues/136267
a37c337https://github.com/python/cpython/commit/a37c337ff97cb4c49eba29e34d3c42b99a44b673
[3.14] gh-136267: Read the target version from patchlevel.h in build-…https://github.com/python/cpython/commit/59b1570c1f70db1b11282341a381b86cf332fdd3
gh-136267https://github.com/python/cpython/issues/136267
59b1570https://github.com/python/cpython/commit/59b1570c1f70db1b11282341a381b86cf332fdd3
itamarohttps://github.com/itamaro
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 20, 2026https://github.com/python/cpython/issues/136267#event-36718663001
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/136267
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/136267
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.