René's URL Explorer Experiment


Title: Python packaging tools can't resolve the package metadata without `libsystemd` · Issue #167 · systemd/python-systemd · GitHub

Open Graph Title: Python packaging tools can't resolve the package metadata without `libsystemd` · Issue #167 · systemd/python-systemd

X Title: Python packaging tools can't resolve the package metadata without `libsystemd` · Issue #167 · systemd/python-systemd

Description: I ran into this whilst trying to move my project to replace poetry with uv. One interesting property of uv, is that it creates a lockfile that works for all platforms. This means that even if systemd-python is only installed on Linux ("s...

Open Graph Description: I ran into this whilst trying to move my project to replace poetry with uv. One interesting property of uv, is that it creates a lockfile that works for all platforms. This means that even if syste...

X Description: I ran into this whilst trying to move my project to replace poetry with uv. One interesting property of uv, is that it creates a lockfile that works for all platforms. This means that even if syste...

Opengraph URL: https://github.com/systemd/python-systemd/issues/167

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python packaging tools can't resolve the package metadata without `libsystemd`","articleBody":"I ran into this whilst trying to move my project to replace `poetry` with `uv`.\n\nOne interesting property of `uv`, is that it creates a lockfile that works for all platforms. This means that even if `systemd-python` is only installed on Linux (`\"systemd-python\u003e=231; sys_platform == 'linux'\"` in the dependencies), it *needs* to be able to resolve the package metadata.\n\nThe problem is, as far as I can tell, `mesonpy` always run the meson build, even just for resolving the package metadata. And because the current meson build will hard-fail if libsystemd isn't available, regardless of the platform, it makes generating/updating the `uv` lockfile impossible on non-linux platforms.\n\n```\n❯ uv sync\n  × Failed to build `systemd-python==235`\n  ├─▶ The build backend returned an error\n  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)\n\n      [stderr]\n      Cannot find libsystemd or libsystemd-journal:\n\n      Package libsystemd was not found in the pkg-config search path.\n      Perhaps you should add the directory containing `libsystemd.pc'\n      to the PKG_CONFIG_PATH environment variable\n      No package 'libsystemd' found\n\n      Package libsystemd-journal was not found in the pkg-config search path.\n      Perhaps you should add the directory containing `libsystemd-journal.pc'\n      to the PKG_CONFIG_PATH environment variable\n      No package 'libsystemd-journal' found\n\n\n      hint: This usually indicates a problem with the package or the build environment.\n  help: `systemd-python` (v235) was included because `matrix-synapse[systemd]` (v1.148.0rc1) depends on `systemd-python\u003e=231`\n```\n\nSome background about this issue on the mesonpy side can be read here: https://github.com/mesonbuild/meson-python/issues/236\n\nNow, this could be solved by making the C extension optional, and throw at runtime if it was built without it. It's not ideal, it would stop failing at build-time, but would make it possible to use `python-systemd` in projects using `uv` without requiring `libsystemd` to be available\n\nAnother very creative solution would be to write a special build backend which delegates to mesonpy in most cases, but provides its own `prepare_metadata_for_build_wheel` implementation… but that feels a bit overkill\n\nLast but not least, using another build backend than `mesonpy` could be a solution, but definitely more involved.\n\nI'll put up a draft PR for the first solution shortly to let you evaluate how that feels","author":{"url":"https://github.com/sandhose","@type":"Person","name":"sandhose"},"datePublished":"2026-02-20T16:25:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/167/python-systemd/issues/167"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0c6d75dd-cd97-a40c-f288-f020a29ee771
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE8C:2CFBC2:F348C5:150681E:6A4DF1F6
html-safe-noncee981e9298ec11159e763ebdf687476f103c9059290fdf542bb2c3097dbe73ffe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRThDOjJDRkJDMjpGMzQ4QzU6MTUwNjgxRTo2QTRERjFGNiIsInZpc2l0b3JfaWQiOiI1NjkxNTM2NTcxOTAxMDE0NTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacecf6594fd1793950b5da84af7cc23f053f7322bc8be91e938a1d08eb2f4eb47a
hovercard-subject-tagissue:3969340145
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/systemd/python-systemd/167/issue_layout
twitter:imagehttps://opengraph.githubassets.com/185913c48f71fc4b0ebc49e69b83f5aed8c0f5978ffca6a5f7e429cf5decbb0f/systemd/python-systemd/issues/167
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/185913c48f71fc4b0ebc49e69b83f5aed8c0f5978ffca6a5f7e429cf5decbb0f/systemd/python-systemd/issues/167
og:image:altI ran into this whilst trying to move my project to replace poetry with uv. One interesting property of uv, is that it creates a lockfile that works for all platforms. This means that even if syste...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesandhose
hostnamegithub.com
expected-hostnamegithub.com
None5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566
turbo-cache-controlno-preview
go-importgithub.com/systemd/python-systemd git https://github.com/systemd/python-systemd.git
octolytics-dimension-user_id1918868
octolytics-dimension-user_loginsystemd
octolytics-dimension-repository_id38590109
octolytics-dimension-repository_nwosystemd/python-systemd
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38590109
octolytics-dimension-repository_network_root_nwosystemd/python-systemd
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
releasef4bb89367ca678f057d79b1abc45d6675b1bd5b2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/systemd/python-systemd/issues/167#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsystemd%2Fpython-systemd%2Fissues%2F167
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fsystemd%2Fpython-systemd%2Fissues%2F167
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=systemd%2Fpython-systemd
Reloadhttps://github.com/systemd/python-systemd/issues/167
Reloadhttps://github.com/systemd/python-systemd/issues/167
Reloadhttps://github.com/systemd/python-systemd/issues/167
Please reload this pagehttps://github.com/systemd/python-systemd/issues/167
systemd https://github.com/systemd
python-systemdhttps://github.com/systemd/python-systemd
Notifications https://github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Fork 77 https://github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Star 521 https://github.com/login?return_to=%2Fsystemd%2Fpython-systemd
Code https://github.com/systemd/python-systemd
Issues 26 https://github.com/systemd/python-systemd/issues
Pull requests 3 https://github.com/systemd/python-systemd/pulls
Actions https://github.com/systemd/python-systemd/actions
Models https://github.com/systemd/python-systemd/models
Security and quality 0 https://github.com/systemd/python-systemd/security
Insights https://github.com/systemd/python-systemd/pulse
Code https://github.com/systemd/python-systemd
Issues https://github.com/systemd/python-systemd/issues
Pull requests https://github.com/systemd/python-systemd/pulls
Actions https://github.com/systemd/python-systemd/actions
Models https://github.com/systemd/python-systemd/models
Security and quality https://github.com/systemd/python-systemd/security
Insights https://github.com/systemd/python-systemd/pulse
Python packaging tools can't resolve the package metadata without libsystemdhttps://github.com/systemd/python-systemd/issues/167#top
https://github.com/sandhose
sandhosehttps://github.com/sandhose
on Feb 20, 2026https://github.com/systemd/python-systemd/issues/167#issue-3969340145
mesonbuild/meson-python#236https://github.com/mesonbuild/meson-python/issues/236
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.