René's URL Explorer Experiment


Title: Using it in a Bazel project · python/prebuilt-cpython · Discussion #10 · GitHub

Open Graph Title: Using it in a Bazel project · python/prebuilt-cpython · Discussion #10

X Title: Using it in a Bazel project · python/prebuilt-cpython · Discussion #10

Description: Using it in a Bazel project

Open Graph Description: Hi, I'm a owner of rules_python, which is a framework for building Python programs using Bazel. I suspect that some of our users would be interested in this, so I wanted to give a quick brain dump ...

X Description: Hi, I'm a owner of rules_python, which is a framework for building Python programs using Bazel. I suspect that some of our users would be interested in this, so I wanted to give a quick brain d...

Opengraph URL: https://github.com/python/prebuilt-cpython/discussions/10

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Using it in a Bazel project","text":"\u003cp dir=\"auto\"\u003eHi,\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI'm a owner of rules_python, which is a framework for building Python programs using Bazel.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI suspect that some of our users would be interested in this, so I wanted to give a quick brain dump on the sort of functionality that would make that easier with the constraints Bazel imposes.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe main constraint comes from cross-platform building. The net implication is that you can't run Python itself to get information about Python because the Python runtime to query is for another platform. This, in turn, means that running things like \u003ccode class=\"notranslate\"\u003epython-config\u003c/code\u003e or \u003ccode class=\"notranslate\"\u003epython -c \"import sysconfig; ...\"\u003c/code\u003e etc to get information about where Python headers are, C ABI settings, etc can't be done.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eInstead, with Bazel, this information has to be provided in a platform-neutral format so that Bazel's \"setup phase\"[1] can transform it into appropriate Bazel configuration information. This setup phase can run arbitrary local programs and Starlark code (Bazel's platform-agnostic DSL).\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eAll of this is to say: if the archive of the runtime includes e.g. a JSON file with information, e.g. where headers are, path to the interpreter binary, python version, abi settings, etc etc), then it can read that and generate the appropriate internal configuration. (I mention JSON because Starlark has builtin support for parsing that, but most any machine readable format can suffice)\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWhat information needs to be provided? The more, the better; it's easy to ignore extra info, harder to reconstruct it after the fact. But a lower bound looks something like:\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003eThe information needed to copy the runtime somewhere else; the files needed at runtime, e.g. the interpreter, but not necessarily the headers.\u003c/li\u003e\n\u003cli\u003eThe information needed to build Python C extensions, e.g. headers, shared libs, abi etc\u003c/li\u003e\n\u003cli\u003eGeneral meta-data, e.g. python version, implementation name, etc\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp dir=\"auto\"\u003eHope this was helpful / informative!\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eI would be curious to know the answer to these as well, as it's probably better to do this for CPython in general and not specific to this endeavour.\u003c/p\u003e","upvoteCount":0,"url":"https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105"}}}

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/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:85a2c88e-f74c-7597-93f7-fe753aa278ef
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id9ABC:E9D16:3AE9EE3:4AA9F28:6B023406
html-safe-nonce7ff005401021b390dfcde8ef05fa01c4b695d73cfebcd3b11697bbdab5a4d6da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUJDOkU5RDE2OjNBRTlFRTM6NEFBOUYyODo2QjAyMzQwNiIsInZpc2l0b3JfaWQiOiI0NTYyMTM1MjYxNzAxNjE2NjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc1286b132b165338ecb673705e81a3d38096075bc9fe4b191a6f3cd8abf67d57
hovercard-subject-tagdiscussion:9041068
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/python/prebuilt-cpython/10/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/fce6178cb4e8116930c5e63077bb77da2864ec02939cea039a2760ddecbb75a3/python/prebuilt-cpython/discussions/10
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fce6178cb4e8116930c5e63077bb77da2864ec02939cea039a2760ddecbb75a3/python/prebuilt-cpython/discussions/10
og:image:altHi, I'm a owner of rules_python, which is a framework for building Python programs using Bazel. I suspect that some of our users would be interested in this, so I wanted to give a quick brain dump ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/prebuilt-cpython git https://github.com/python/prebuilt-cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id1075604713
octolytics-dimension-repository_nwopython/prebuilt-cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1075604713
octolytics-dimension-repository_network_root_nwopython/prebuilt-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

Links:

Skip to contenthttps://github.com/python/prebuilt-cpython/discussions/10#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fprebuilt-cpython%2Fdiscussions%2F10
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%2Fprebuilt-cpython%2Fdiscussions%2F10
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%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=python%2Fprebuilt-cpython
Reloadhttps://github.com/python/prebuilt-cpython/discussions/10
Reloadhttps://github.com/python/prebuilt-cpython/discussions/10
Reloadhttps://github.com/python/prebuilt-cpython/discussions/10
pythonhttps://github.com/python
prebuilt-cpythonhttps://github.com/python/prebuilt-cpython
Codehttps://github.com/python/prebuilt-cpython
Issues2 (2)https://github.com/python/prebuilt-cpython/issues
Pull requests1 (1)https://github.com/python/prebuilt-cpython/pulls
Discussionshttps://github.com/python/prebuilt-cpython/discussions
Actionshttps://github.com/python/prebuilt-cpython/actions
Projectshttps://github.com/python/prebuilt-cpython/projects
Security and qualityhttps://github.com/python/prebuilt-cpython/security
Insightshttps://github.com/python/prebuilt-cpython/insights
Answered https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105
brettcannonhttps://github.com/brettcannon
rickeylev https://github.com/rickeylev
Generalhttps://github.com/python/prebuilt-cpython/discussions/categories/general
Using it in a Bazel project https://github.com/python/prebuilt-cpython/discussions/10#top
rickeylev https://github.com/rickeylev
Answered https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105
brettcannonhttps://github.com/brettcannon
Return to tophttps://github.com/python/prebuilt-cpython/discussions/10#top
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/10
https://github.com/python/prebuilt-cpython/discussions/10
rickeylev https://github.com/rickeylev
Oct 18, 2025 https://github.com/python/prebuilt-cpython/discussions/10#discussion-9041068
brettcannon https://github.com/brettcannon
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105
View full answer https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105
Oldest https://github.com/python/prebuilt-cpython/discussions/10?sort=old
Newest https://github.com/python/prebuilt-cpython/discussions/10?sort=new
Top https://github.com/python/prebuilt-cpython/discussions/10?sort=top
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/10
https://github.com/python/prebuilt-cpython/discussions/10
geofft https://github.com/geofft
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14730872
build-details.json (PEP 739)https://peps.python.org/pep-0739/
PYTHON.json filehttps://gregoryszorc.com/docs/python-build-standalone/main/distributions.html#python-json-file
https://github.com/brettcannon
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/10
https://github.com/python/prebuilt-cpython/discussions/10
brettcannonhttps://github.com/brettcannon
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733105
brettcannonhttps://github.com/brettcannon
https://github.com/emmatyping
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/10
https://github.com/python/prebuilt-cpython/discussions/10
emmatypinghttps://github.com/emmatyping
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/10#discussioncomment-14733576
PyO3/pyo3#1672https://github.com/PyO3/pyo3/issues/1672
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fprebuilt-cpython%2Fdiscussions%2F10
💬 General https://github.com/python/prebuilt-cpython/discussions/categories/general
https://github.com/rickeylev
https://github.com/brettcannon
https://github.com/geofft
https://github.com/emmatyping
https://github.com/python/prebuilt-cpython/discussions/10
https://github.com/settings/replies?return_to=1
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.