René's URL Explorer Experiment


Title: gh-119696: Install build-details.json with relative paths by itamaro · Pull Request #161907 · python/cpython · GitHub

Open Graph Title: gh-119696: Install build-details.json with relative paths by itamaro · Pull Request #161907 · python/cpython

X Title: gh-119696: Install build-details.json with relative paths by itamaro · Pull Request #161907 · python/cpython

Description: make install writes build-details.json (PEP 739) with absolute paths, so the file is wrong once the installation is moved. Fixing that is one of the steps towards relocatable CPython installations. PEP 739 allows the paths to be relative to base_prefix, and base_prefix to be relative to the file's directory; generate-build-details.py already implements that behind --relative-paths --config-file-path. The Makefile now passes --relative-paths with a new --installed-location flag, which takes the file's installed path from sysconfig instead of from $(LIBDEST), so that make install prefix=... (which the Android build uses) doesn't change the result. The installed-file tests now resolve the paths like a consumer would, instead of skipping on a relocated installation. Issue: gh-119696

Open Graph Description: make install writes build-details.json (PEP 739) with absolute paths, so the file is wrong once the installation is moved. Fixing that is one of the steps towards relocatable CPython installations....

X Description: make install writes build-details.json (PEP 739) with absolute paths, so the file is wrong once the installation is moved. Fixing that is one of the steps towards relocatable CPython installations....

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

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:9b42074b-33ae-ab91-a9b3-d354b01cf3e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8B5A:3CBB3E:3339665:415C0C2:6B021E64
html-safe-nonce7b1fa8dfcf1b29e285fbe47b2be0e1fa474bae0d6f7057169bd2c34ceddfb4cf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjVBOjNDQkIzRTozMzM5NjY1OjQxNUMwQzI6NkIwMjFFNjQiLCJ2aXNpdG9yX2lkIjoiMjk5NTgxMDk4MjkxNzQ0NzI2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb37d8db007d77a8d05c0f98bc1fc1827f6efbd211c2b15307b38ad388a19134c
hovercard-subject-tagpull_request:5283820199
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/161907/files
twitter:imagehttps://avatars.githubusercontent.com/u/290943?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/290943?s=400&v=4
og:image:altmake install writes build-details.json (PEP 739) with absolute paths, so the file is wrong once the installation is moved. Fixing that is one of the steps towards relocatable CPython installations....
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-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/161907/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F161907%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%2F161907%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/161907/files
Reloadhttps://github.com/python/cpython/pull/161907/files
Reloadhttps://github.com/python/cpython/pull/161907/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
itamarohttps://github.com/itamaro
python:mainhttps://github.com/python/cpython/tree/main
itamaro:build-details-relative-pathshttps://github.com/itamaro/cpython/tree/build-details-relative-paths
Conversation 3 https://github.com/python/cpython/pull/161907
Commits 3 https://github.com/python/cpython/pull/161907/commits
Checks 59 https://github.com/python/cpython/pull/161907/checks
Files changed 5 https://github.com/python/cpython/pull/161907/files
gh-119696: Install build-details.json with relative paths https://github.com/python/cpython/pull/161907/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/161907/files
22c061e gh-119696: Install build-details.json with relative paths itamaro Nov 7, 2026 https://github.com/python/cpython/pull/161907/commits/22c061e90c1542425430a31380bf34b7666efcfc
f0aba43 Take the installed location from sysconfig, not the Makefile itamaro Nov 16, 2026 https://github.com/python/cpython/pull/161907/commits/f0aba4342e6fe1b8698ad1cf883f50fafd2f81f6
20de602 Merge branch 'main' into build-details-relative-paths itamaro Nov 20, 2026 https://github.com/python/cpython/pull/161907/commits/20de6024b67d946a54bf7ad4dccee959ba5a825e
Clear filters https://github.com/python/cpython/pull/161907/files
Please reload this pagehttps://github.com/python/cpython/pull/161907/files
Please reload this pagehttps://github.com/python/cpython/pull/161907/files
3.16.rst https://github.com/python/cpython/pull/161907/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
test_build_details.py https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
Makefile.pre.in https://github.com/python/cpython/pull/161907/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
2026-11-07-10-00-00.gh-issue-119696.rBdPth.rst https://github.com/python/cpython/pull/161907/files#diff-d8eab4dbfaa43d4a98a16304006d95fcd276be58d92e1fea71505737a76b247f
generate-build-details.py https://github.com/python/cpython/pull/161907/files#diff-fa296b8717ad66c09f63f93c226e8cc42104d2adb33cf07709f1e5b68e121d28
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.16.rsthttps://github.com/python/cpython/pull/161907/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
View file https://github.com/python/cpython/blob/20de6024b67d946a54bf7ad4dccee959ba5a825e/Doc/whatsnew/3.16.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/161907/{{ revealButtonHref }}
https://github.com/python/cpython/pull/161907/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
https://github.com/python/cpython/pull/161907/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L92
Lib/test/test_build_details.pyhttps://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
View file https://github.com/python/cpython/blob/20de6024b67d946a54bf7ad4dccee959ba5a825e/Lib/test/test_build_details.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/161907/{{ revealButtonHref }}
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/pull/161907/files#diff-d6de943be30f480b2da6614492c5303d8c4784f83086aa6eccdc68d1bc6ff4dd
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L85
Makefile.pre.inhttps://github.com/python/cpython/pull/161907/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
View file https://github.com/python/cpython/blob/20de6024b67d946a54bf7ad4dccee959ba5a825e/Makefile.pre.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/161907/{{ revealButtonHref }}
https://github.com/python/cpython/pull/161907/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/161907/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
Misc/NEWS.d/next/Build/2026-11-07-10-00-00.gh-issue-119696.rBdPth.rsthttps://github.com/python/cpython/pull/161907/files#diff-d8eab4dbfaa43d4a98a16304006d95fcd276be58d92e1fea71505737a76b247f
View file https://github.com/python/cpython/blob/20de6024b67d946a54bf7ad4dccee959ba5a825e/Misc/NEWS.d/next/Build/2026-11-07-10-00-00.gh-issue-119696.rBdPth.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/161907/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L91
Tools/build/generate-build-details.pyhttps://github.com/python/cpython/pull/161907/files#diff-fa296b8717ad66c09f63f93c226e8cc42104d2adb33cf07709f1e5b68e121d28
View file https://github.com/python/cpython/blob/20de6024b67d946a54bf7ad4dccee959ba5a825e/Tools/build/generate-build-details.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/161907/{{ revealButtonHref }}
https://github.com/python/cpython/pull/161907/files#diff-fa296b8717ad66c09f63f93c226e8cc42104d2adb33cf07709f1e5b68e121d28
https://github.com/python/cpython/pull/161907/files#diff-fa296b8717ad66c09f63f93c226e8cc42104d2adb33cf07709f1e5b68e121d28
Please reload this pagehttps://github.com/python/cpython/pull/161907/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.