4 ms·
I want to: cppm install library-2.0.0-alpha like in every other programming language, and be able to develop my project with it. Why would I ever even want t
by oblio 6y ago
I want to:
cppm install library-2.0.0-alpha
like in every other programming language, and be able to develop my project with it.
Why would I ever even want to do 1 or 2? That's the OS package manager's job. The fact that the OS is written in C/C++ is an implementation detail, it shouldn't leak out. The package manager is also not portable, the commands are not the same, the available libraries are limited and frequently incompatible with each other.
Your 3, 4, 5 are all manual steps, if you notice. I don't see any mention of a package manager in there :-)
- eqvinox 6y ago> like in every other programming language, and be able to develop my project with it. You're confusing application development with system development. C and C++ are very much aimed at the latter. By the time you're in a situation where you need to mess with a specific version of a library that is included in your host system, something has fundamentally gone wrong at an earlier point. C and C++ don't provide an application-level package manager, and I think this is pretty much intentional. Both languages "want" to build a system, not an application. Case in point: the C standard library is largely specified in POSIX, right next to system tools - not ISO C.
- int_19h 6y agoThe C standard library is entirely specified in the ISO C standard. POSIX qualifies some things, and adds a lot more, but none of that is the C standard library.
- physicsguy 6y agoIt's overstated that that works everywhere though, it certainly doesn't in Python. That's why we've got pip, conda, virtualenv, pyenv, etc. for version and package manaegemnt.
- int_19h 6y agopip + virtualenv fully solve this problem - maybe not in the most comfortable way (which is why there are all those extensions and alternatives), but certainly way better than anything C++ has - and they ship with Python.
- physicsguy 6y agoIt's not even possible to install every python package (and it's dependencies) using pip, which is why Conda exists.
- int_19h 6y agoIf some package is available in the Conda repos, but not in PyPI, that's down to its author choosing to support one but not the other. Ever since wheels became a thing, I can't think of anything reasonable that's impossible to do via pip when it comes to packaging a library.