r/cpp • u/TheRavagerSw • Feb 28 '26
Language specific package managers are a horrible idea
Package managers should only deal with package cache and have a scripting interface.
Package managers trying to act smart only makes our jobs harder as evidenced by looking at the issue pages of global package registries.
I recommend everyone here to switch to Conan and not use any abstractions for the build systems, disable remote and use a deployment script or using full deploy as an option. It is not ideal, but it doesn't stand in your way.
0
Upvotes
View all comments
Show parent comment
2
u/not_a_novel_account cmake dev Mar 02 '26 edited Mar 02 '26
How do you know what build system is to be used if you don't have a metadata file to describe it? This is exactly what Python's PEP 517/518 provides. It says "to build this project, download <cmake, meson, uv-build, flit, hatch, distutils, etc>, and run it". That's all the project description format provides, along with some bare minimums like version numbering and project name.
No language-specific minutia leaks into the project description format. PyPI has projects written in Fortran, Rust, C++, Zig, and more languages besides. The project description captures none of that. The language specifics go into the individual build backends.
I mean, that's fine. You can totally hold this position. I don't want to argue against it. What I would try to tell you is no one in the ecosystem community will be interested in what you have to say if you hold to it. "It won't work for X" is instant consensus against for all of the people actually writing code in this space, and they will not dedicate time or resources to any solution which limits or excludes developer choice so broadly.
Basically, at ecosystems meetings for C++ (and Python PEPs, and I assume Rust RFCs), if someone says "My company does Foo and we need to support that" the answer is never "Your use-case is invalid and we're not going to consider your input". We would all kill each other if we talked like that.