René's URL Explorer Experiment


Title: Are static library builds on Windows still supported? · Issue #110234 · python/cpython · GitHub

Open Graph Title: Are static library builds on Windows still supported? · Issue #110234 · python/cpython

X Title: Are static library builds on Windows still supported? · Issue #110234 · python/cpython

Description: Bug report Bug description: This is a followup from #110049 (comment), where @colesbury pointed out that we are assuming in a couple places that Windows builds are using a shared library. I think this might steam from the "availability" ...

Open Graph Description: Bug report Bug description: This is a followup from #110049 (comment), where @colesbury pointed out that we are assuming in a couple places that Windows builds are using a shared library. I think t...

X Description: Bug report Bug description: This is a followup from #110049 (comment), where @colesbury pointed out that we are assuming in a couple places that Windows builds are using a shared library. I think t...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Are static library builds on Windows still supported?","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\nThis is a followup from https://github.com/python/cpython/pull/110049#discussion_r1340595301, where @colesbury pointed out that we are assuming in a couple places that Windows builds are using a shared library.\r\n\r\nI think this might steam from the \"availability\" section of the `sys.dllhandle` documentation only stating \"Windows\".\r\n\r\nIf static library builds on Windows are still supported, we should document that `sys.dllhandle` will only be available on shared library Windows builds.\r\n\r\nThis likely hasn't come up until now because we don't test this in the CI. AFAICT this is a \"best-effort\" option, where we are not really paying much attention to it, but will try to fix bugs if reported. It'd probably make sense to document that somewhere.\r\n\r\nBut with this going unnoticed for a while, it also raises the question, do we even want to support this use-case? The maintenance is minimal, so IMO it should be fine, but we definitely need to fix the `sys.dllhandle` documentation.\r\n\r\n---\r\n\r\n### Possibly problematic code\r\n\r\n#### ctypes\r\n\r\nhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/ctypes/__init__.py#L469-L474\r\n\r\nOn POSIX, no object name or handle is provided, because we want to get the handle for the running executable.\r\n\r\nFrom [dlopen's manpage](https://man.archlinux.org/man/dlopen.3)\r\n\r\n> void *dlopen(const char *filename, int flags);\r\n\r\n> If filename is NULL, then the returned handle is for the main program.\r\n\r\nOn Windows, we load the dynamic library instead. I am a bit out of my depth here, but AFAICT we do this because the dynamic library symbols are not present on the current process. Again, not sure about this, but AFAICT that should not be the case when using a static libpython, so, if I understand everything correctly, we would want to take the same approach as POSIX in this situation, and from what I can tell, that can be done with `GetModuleHandle(NULL)`.\r\n\r\n@zooba, could check if my analysis of the issue on Windows is correct? :rofl:\r\n\r\n#### Tests\r\n\r\nFailures from this wouldn't show up on CI, but should when running the tests on static library Windows builds. This is something we should probably fix, but is low priority.\r\n\r\nhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/test_site.py#L569\r\n\r\nhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/test_import/__init__.py#L742\r\n\r\nhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/support/__init__.py#L1552\r\n\r\n---\r\n\r\n### Relevant information\r\n\r\n#### Window static library build documentation\r\n\r\nhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/PCbuild/readme.txt#L266-L274\r\n\r\n---\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\nWindows","author":{"url":"https://github.com/FFY00","@type":"Person","name":"FFY00"},"datePublished":"2023-10-02T17:10:20Z","url":"https://github.com/python/cpython/issues/110234"}

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:c36bf307-26f1-5798-8223-19eefacd99ea
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB858:382318:5D2114:74E894:6B02073C
html-safe-noncea4d6950fbe155d7f8eeba9216481f33e09bb2cfa534d006b6b6341a0751e62b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODU4OjM4MjMxODo1RDIxMTQ6NzRFODk0OjZCMDIwNzNDIiwidmlzaXRvcl9pZCI6Ijg5NDc4MDc1MjUzNDkyMzAzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac25e7c0ff561cabfb0a1726668585461aa5dd24cff3d3eb5b950343ae3119f6a1
hovercard-subject-tagissue:1922307140
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/110234/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e4f0f6041d5172e29c9af9391a15137522be6291643d8de653084c3c34963e67/python/cpython/issues/110234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e4f0f6041d5172e29c9af9391a15137522be6291643d8de653084c3c34963e67/python/cpython/issues/110234
og:image:altBug report Bug description: This is a followup from #110049 (comment), where @colesbury pointed out that we are assuming in a couple places that Windows builds are using a shared library. I think t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFFY00
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/110234#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F110234
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%2F110234
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/110234
Reloadhttps://github.com/python/cpython/issues/110234
Reloadhttps://github.com/python/cpython/issues/110234
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/110234
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/110234
Are static library builds on Windows still supported?https://github.com/python/cpython/issues/110234#top
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/FFY00
FFY00https://github.com/FFY00
on Oct 2, 2023https://github.com/python/cpython/issues/110234#issue-1922307140
#110049 (comment)https://github.com/python/cpython/pull/110049#discussion_r1340595301
@colesburyhttps://github.com/colesbury
cpython/Lib/ctypes/__init__.pyhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/ctypes/__init__.py#L469-L474
8d92b6ehttps://github.com/python/cpython/commit/8d92b6eff3bac45e7d4871c46c4511218b9b685a
dlopen's manpagehttps://man.archlinux.org/man/dlopen.3
@zoobahttps://github.com/zooba
cpython/Lib/test/test_site.pyhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/test_site.py#L569
8d92b6ehttps://github.com/python/cpython/commit/8d92b6eff3bac45e7d4871c46c4511218b9b685a
cpython/Lib/test/test_import/__init__.pyhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/test_import/__init__.py#L742
8d92b6ehttps://github.com/python/cpython/commit/8d92b6eff3bac45e7d4871c46c4511218b9b685a
cpython/Lib/test/support/__init__.pyhttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/Lib/test/support/__init__.py#L1552
8d92b6ehttps://github.com/python/cpython/commit/8d92b6eff3bac45e7d4871c46c4511218b9b685a
cpython/PCbuild/readme.txthttps://github.com/python/cpython/blob/8d92b6eff3bac45e7d4871c46c4511218b9b685a/PCbuild/readme.txt#L266-L274
8d92b6ehttps://github.com/python/cpython/commit/8d92b6eff3bac45e7d4871c46c4511218b9b685a
FFY00https://github.com/FFY00
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%22
on Oct 2, 2023https://github.com/python/cpython/issues/110234#event-10528547045
https://github.com/zooba
zoobahttps://github.com/zooba
on Oct 2, 2023https://github.com/python/cpython/issues/110234#issuecomment-1743743747
their build scripthttps://github.com/indygreg/python-build-standalone/blob/main/cpython-windows/build.py
https://github.com/FFY00
FFY00https://github.com/FFY00
on Oct 6, 2023https://github.com/python/cpython/issues/110234#issuecomment-1749866903
https://github.com/jairov-apptio
jairov-apptiohttps://github.com/jairov-apptio
on Jan 2, 2024https://github.com/python/cpython/issues/110234#issuecomment-1874422637
@zoobahttps://github.com/zooba
https://github.com/zooba
zoobahttps://github.com/zooba
on Jan 3, 2024https://github.com/python/cpython/issues/110234#issuecomment-1875617843
https://github.com/jairov-apptio
jairov-apptiohttps://github.com/jairov-apptio
on Jan 3, 2024https://github.com/python/cpython/issues/110234#issuecomment-1875749930
https://github.com/zooba
zoobahttps://github.com/zooba
on Jan 3, 2024https://github.com/python/cpython/issues/110234#issuecomment-1876080656
dev guidehttps://devguide.python.org/
https://github.com/melroyvandenberg
melroyvandenberghttps://github.com/melroyvandenberg
on Feb 9, 2024https://github.com/python/cpython/issues/110234#issuecomment-1936060771
multiplehttps://github.com/python/mypy/issues/12248
questionshttps://github.com/python/pythondotorg/issues/1997
abouthttps://github.com/python/cpython/issues/91010
https://wiki.python.org/moin/BuildStaticallyhttps://wiki.python.org/moin/BuildStatically
@zoobahttps://github.com/zooba
https://github.com/indygreg/python-build-standalone/actions/runs/7843195688/job/21403138066#step:7:44766https://github.com/indygreg/python-build-standalone/actions/runs/7843195688/job/21403138066#step:7:44766
https://private-user-images.githubusercontent.com/66132222/303699540-7b93d7e5-950b-4ee5-ad89-75cad3278f73.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyOTUzMzcsIm5iZiI6MTc5NTI5NTAzNywicGF0aCI6Ii82NjEzMjIyMi8zMDM2OTk1NDAtN2I5M2Q3ZTUtOTUwYi00ZWU1LWFkODktNzVjYWQzMjc4ZjczLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDIxMDM1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzOGE4NzBkZjE5MjM0MGU2ZDE0MWQyY2ViYjM5M2U0MjUwZWZmMjY3ZDMwN2Y3MDg0MTdjYTcxYTAyZTBjZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.24AlkeEDdwtkW4pXReXKRvagK038BjKzgcILI8_WNW8
https://github.com/zooba
zoobahttps://github.com/zooba
on Feb 9, 2024https://github.com/python/cpython/issues/110234#issuecomment-1936275964
@melroyvandenberghttps://github.com/melroyvandenberg
https://discuss.python.org/https://discuss.python.org/
https://github.com/melroyvandenberg
melroyvandenberghttps://github.com/melroyvandenberg
on Feb 9, 2024https://github.com/python/cpython/issues/110234#issuecomment-1936381714
@melroyvandenberghttps://github.com/melroyvandenberg
https://discuss.python.org/https://discuss.python.org/
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/110234
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/110234
OS-windowshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22OS-windows%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.