René's URL Explorer Experiment


Title: [WIP] Various build system improvements by indygreg · Pull Request #101093 · python/cpython · GitHub

Open Graph Title: [WIP] Various build system improvements by indygreg · Pull Request #101093 · python/cpython

X Title: [WIP] Various build system improvements by indygreg · Pull Request #101093 · python/cpython

Description: I'm creating this PR to track various build system changes that I'd like to make to CPython. I'm creating a draft PR instead of opening real PRs because general OSS experience has taught me that if I trickle things out slowly without any prior context project maintainers won't see the big picture and/or benefits of the changes. My hope is that by tracking all proposed changes in a Git branch that people can easily diff that I'll have an easier time convincing folks to accept the patches. Next Steps CPython maintainer(s) should look at each commit in this branch. I write detailed commit messages. See each commit for more details. Commits beginning with gh-xxxx: aren't yet assigned issues/PRs. Then, just tell me which commits to turn into issues/PRs and I'll do so. Keep in mind some commits are dependent on others. For example, the BOLT enhancements (which appear to deliver meaningful pyperformance wins) depends on the overhaul build rules for optimized binaries commit and its precursors. I have several more potential patches to include in this branch. Including a bunch that enable cross-compiling for Apple platforms. I figured I'd start with just the build system + BOLT improvements to get people's attention. Most of this work is derived from my efforts on https://github.com/indygreg/python-build-standalone. cc @corona10 since you seem to have an interest in all the BOLT PRs.

Open Graph Description: I'm creating this PR to track various build system changes that I'd like to make to CPython. I'm creating a draft PR instead of opening real PRs because general OSS experience has taugh...

X Description: I'm creating this PR to track various build system changes that I'd like to make to CPython. I'm creating a draft PR instead of opening real PRs because general OSS experien...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:81d78f81-719f-100f-8adb-a7827d8330db
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC106:1D189C:BE9E9D:FE3D45:6969986E
html-safe-nonce4261a0a644f46d121414e4e4b9d44a0df2e108ba6f8bb8c3713692681530868c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTA2OjFEMTg5QzpCRTlFOUQ6RkUzRDQ1OjY5Njk5ODZFIiwidmlzaXRvcl9pZCI6Ijg1Mzg5NDUzOTA1NzA0Nzc2NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9516ff3ace348d75669ffa8460b2a110499e2397dc6e0d2dbeeda9b310597f1f
hovercard-subject-tagpull_request:1199600085
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/101093/files
twitter:imagehttps://avatars.githubusercontent.com/u/342993?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/342993?s=400&v=4
og:image:altI'm creating this PR to track various build system changes that I'd like to make to CPython. I'm creating a draft PR instead of opening real PRs because general OSS experience has taugh...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/101093/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101093%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101093%2Ffiles
Sign up https://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/101093/files
Reloadhttps://github.com/python/cpython/pull/101093/files
Reloadhttps://github.com/python/cpython/pull/101093/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/101093/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/101093/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
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
indygreghttps://github.com/indygreg
python:mainhttps://github.com/python/cpython/tree/main
indygreg:build-system-fixeshttps://github.com/indygreg/cpython/tree/build-system-fixes
Conversation 13 https://github.com/python/cpython/pull/101093
Commits 6 https://github.com/python/cpython/pull/101093/commits
Checks 0 https://github.com/python/cpython/pull/101093/checks
Files changed https://github.com/python/cpython/pull/101093/files
Please reload this pagehttps://github.com/python/cpython/pull/101093/files
[WIP] Various build system improvements https://github.com/python/cpython/pull/101093/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/101093/files
8eb0b50 gh-104523: inline minimal PGO rules indygreg Jan 16, 2023 https://github.com/python/cpython/pull/101093/commits/8eb0b506c637d6a26fdb5651b31df3c2135f82f7
f215844 gh-xxxx: overhaul build rules for optimized binaries indygreg Jan 16, 2023 https://github.com/python/cpython/pull/101093/commits/f215844ca3971c8fd1ec46a4c294f940d69543c9
c8759fd gh-xxxx: move BOLT arguments to configure indygreg Jan 16, 2023 https://github.com/python/cpython/pull/101093/commits/c8759fd135f0bd9eb7d294f917940d8c15c1826f
02418fd gh-xxxx: run BOLT instrumented binary with `$(RUNSHARED)` indygreg Jan 16, 2023 https://github.com/python/cpython/pull/101093/commits/02418fde929452e3fdddc76bf6d5aa620c0ad04b
a212332 gh-xxxx: enable BOLT optimization of libpython indygreg Jan 16, 2023 https://github.com/python/cpython/pull/101093/commits/a212332e85c4e6454460301dd3d84108dfd9f7d0
9e50ee0 gh-xxxx: expose _PYTHON_HOST_PLATFORM as a settable variable indygreg Jan 17, 2023 https://github.com/python/cpython/pull/101093/commits/9e50ee0e681881d9505033de82f950b53d4a5d59
Clear filters https://github.com/python/cpython/pull/101093/files
Please reload this pagehttps://github.com/python/cpython/pull/101093/files
Please reload this pagehttps://github.com/python/cpython/pull/101093/files
.gitignore https://github.com/python/cpython/pull/101093/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
Makefile.pre.in https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
configure https://github.com/python/cpython/pull/101093/files#diff-90d08e583c4c9c6f391b2ae90f819f600a6326928ea9512c9e0c6d98e9f29ac2
configure.ac https://github.com/python/cpython/pull/101093/files#diff-49473dca262eeab3b4a43002adb08b4db31020d190caaad1594b47f1d5daa810
.gitignorehttps://github.com/python/cpython/pull/101093/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/python/cpython/blob/9e50ee0e681881d9505033de82f950b53d4a5d59/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101093/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/python/cpython/pull/101093/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L84
Makefile.pre.inhttps://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
View file https://github.com/python/cpython/blob/9e50ee0e681881d9505033de82f950b53d4a5d59/Makefile.pre.in
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/101093/{{ revealButtonHref }}
https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
https://github.com/python/cpython/pull/101093/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c
Please reload this pagehttps://github.com/python/cpython/pull/101093/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.