René's URL Explorer Experiment


Title: Do we statically compile in extension modules? · python/prebuilt-cpython · Discussion #7 · GitHub

Open Graph Title: Do we statically compile in extension modules? · python/prebuilt-cpython · Discussion #7

X Title: Do we statically compile in extension modules? · python/prebuilt-cpython · Discussion #7

Description: Do we statically compile in extension modules?

Open Graph Description: I'm assuming not, but there might be reasons to that I'm not thinking of?

X Description: I'm assuming not, but there might be reasons to that I'm not thinking of?

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Do we statically compile in extension modules?","text":"\u003cp dir=\"auto\"\u003eI'm assuming not, but there might be reasons to that I'm not thinking of?\u003c/p\u003e","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eThe broader Python ecosystem expects modules to not be statically linked in. We had to spin out \u003ccode class=\"notranslate\"\u003e_tkinter\u003c/code\u003e into a separate module to make matplotlib and PIL work, because they have code that uses \u003ccode class=\"notranslate\"\u003e_tkinter.__file__\u003c/code\u003e as a way to get at the underlying Tcl/Tk library. In other words, the \u003ccode class=\"notranslate\"\u003edlsym\u003c/code\u003e API (on all POSIX platforms, not just Linux!), and things on top of it like \u003ccode class=\"notranslate\"\u003ectypes\u003c/code\u003e, is oriented around getting handles out of filenames, and while the argument that you should avoid \u003ccode class=\"notranslate\"\u003e__file__\u003c/code\u003e is \u003cem\u003eusually\u003c/em\u003e correct, there is no alternative for it for dynamic libraries.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eWe also ran into a problem recently where CPython 3.14's source code assumed that the \u003ccode class=\"notranslate\"\u003e_asyncio\u003c/code\u003e module was a separate file and so the fancy new asyncio remote debugging stuff didn't work. It turns out that CPython 3.15 now statically links that module, and I solved this by cherry-picking that patch (\u003ca class=\"issue-link js-issue-link\" data-error-text=\"Failed to load title\" data-id=\"3431476579\" data-permission-text=\"Title is private\" data-url=\"https://github.com/astral-sh/python-build-standalone/issues/804\" data-hovercard-type=\"pull_request\" data-hovercard-url=\"/astral-sh/python-build-standalone/pull/804/hovercard\" href=\"https://github.com/astral-sh/python-build-standalone/pull/804\"\u003eastral-sh/python-build-standalone#804\u003c/a\u003e). I think that's another argument that it's worth not diverging from upstream CPython's default build config.\u003c/p\u003e","upvoteCount":0,"url":"https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14730815"}}}

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/discussions/:number(.:format)
route-controllerdiscussions
route-actionshow
fetch-noncev2:61a1b28a-2608-2caa-f22b-61c9d6e8faef
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id8698:D1D28:1E61F02:2829A2C:6B023480
html-safe-nonce7b0924a336fa9f76847988b22fb4480ddba81f6eed4b77b31dd2b9b439d9f46d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njk4OkQxRDI4OjFFNjFGMDI6MjgyOUEyQzo2QjAyMzQ4MCIsInZpc2l0b3JfaWQiOiIzMzAzMDc1NTExNjYzNzM1OTM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac30afc102149d45416ab60ab17ed389ad7e71d8d4545018fe76804c259fb9ca72
hovercard-subject-tagdiscussion:9039270
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///discussions/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/prebuilt-cpython/discussions/7
twitter:imagehttps://opengraph.githubassets.com/c6f765e335d77be414d254f78d40ccc045103b10fd1e400c815689ddf64beb79/python/prebuilt-cpython/discussions/7
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c6f765e335d77be414d254f78d40ccc045103b10fd1e400c815689ddf64beb79/python/prebuilt-cpython/discussions/7
og:image:altI'm assuming not, but there might be reasons to that I'm not thinking of?
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/7#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fprebuilt-cpython%2Fdiscussions%2F7
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%2F7
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fdiscussions%2Fshow&source=header-repo&source_repo=python%2Fprebuilt-cpython
Reloadhttps://github.com/python/prebuilt-cpython/discussions/7
Reloadhttps://github.com/python/prebuilt-cpython/discussions/7
Reloadhttps://github.com/python/prebuilt-cpython/discussions/7
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/7#discussioncomment-14730815
geoffthttps://github.com/geofft
brettcannon https://github.com/brettcannon
Generalhttps://github.com/python/prebuilt-cpython/discussions/categories/general
Do we statically compile in extension modules? https://github.com/python/prebuilt-cpython/discussions/7#top
brettcannon https://github.com/brettcannon
Answered https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14730815
geoffthttps://github.com/geofft
Return to tophttps://github.com/python/prebuilt-cpython/discussions/7#top
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
brettcannon https://github.com/brettcannon
Oct 17, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussion-9039270
geofft https://github.com/geofft
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14730815
View full answer https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14730815
Oldest https://github.com/python/prebuilt-cpython/discussions/7?sort=old
Newest https://github.com/python/prebuilt-cpython/discussions/7?sort=new
Top https://github.com/python/prebuilt-cpython/discussions/7?sort=top
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
indygreg https://github.com/indygreg
Oct 17, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14714115
https://github.com/emmatyping
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
emmatypinghttps://github.com/emmatyping
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14725864
https://github.com/indygreg
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
indygreghttps://github.com/indygreg
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14725956
https://github.com/geofft
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
geoffthttps://github.com/geofft
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14730815
astral-sh/python-build-standalone#804https://github.com/astral-sh/python-build-standalone/pull/804
brettcannonhttps://github.com/brettcannon
https://github.com/emmatyping
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
emmatypinghttps://github.com/emmatyping
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14732871
https://github.com/cmaloney
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
cmaloneyhttps://github.com/cmaloney
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14732943
https://github.com/astral-sh/python-build-standalone/blob/bd5227106d439127be97530b7781ac933d849324/cpython-unix/patch-python-configure-add-enable-static-libpython-for-interpreter.patch#L12-L20https://github.com/astral-sh/python-build-standalone/blob/bd5227106d439127be97530b7781ac933d849324/cpython-unix/patch-python-configure-add-enable-static-libpython-for-interpreter.patch#L12-L20
https://github.com/geofft
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
geoffthttps://github.com/geofft
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733101
python/cpython#133312https://github.com/python/cpython/issues/133312
https://github.com/brettcannon
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
brettcannonhttps://github.com/brettcannon
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733486
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
zooba https://github.com/zooba
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14732949
https://github.com/geofft
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
geoffthttps://github.com/geofft
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733147
astral-sh/python-build-standalone#740https://github.com/astral-sh/python-build-standalone/issues/740
https://github.com/indygreg
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
indygreghttps://github.com/indygreg
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733223
https://github.com/zooba
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
zoobahttps://github.com/zooba
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733450
https://github.com/brettcannon
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
brettcannonhttps://github.com/brettcannon
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733497
https://github.com/emmatyping
Please reload this pagehttps://github.com/python/prebuilt-cpython/discussions/7
https://github.com/python/prebuilt-cpython/discussions/7
emmatypinghttps://github.com/emmatyping
Oct 20, 2025 https://github.com/python/prebuilt-cpython/discussions/7#discussioncomment-14733629
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%2F7
💬 General https://github.com/python/prebuilt-cpython/discussions/categories/general
macOS https://github.com/python/prebuilt-cpython/discussions?discussions_q=label%3AmacOS
Linux https://github.com/python/prebuilt-cpython/discussions?discussions_q=label%3ALinux
https://github.com/brettcannon
https://github.com/geofft
https://github.com/indygreg
https://github.com/cmaloney
https://github.com/zooba
https://github.com/emmatyping
https://github.com/python/prebuilt-cpython/discussions/7
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.