4 ms·
`pipx run litecli`
by hprotagonist 2y ago
`pipx run litecli`
- dbtablesorrows 2y agoWhat's wrong with pipx install?
- hprotagonist 2y agonothing!
- CRConrad 2y agoLots. Perhaps not with pipx itself, but as a symptom of what's wrong with Python (and most software nowadays) there are lots of problems with it: Everything is such huge stacks of stuff built on other stuff built on other stuff built on other stuff... All huge tottering heaps of infrastructure where shit can (and does) go wrong in every layer. It's package managers running in containers calling dynamically-linked libraries running on virtual machines calling package managers running in containers calling dynamically-linked libraries running on virtual machines... With, say, Turbo Pascal you compiled your code into a .COM file, copied it to a floppy, and people ran it. Just your program. On their OS. No heaps of layers of infrastructure and toolchains to get knotted into a tangle of failing interdependencies. How the fuck can it be so impossible to build stuff like that nowadays?!? Not that I'm blaming pipx (whatevertheheck that is; judging from the name seems to be a relative of pip's, which I've heard of) in particular, or even Python itself, more than anything else. Almost everything nowadays seems to be that way. I just wrote all this in the hope that it might explain why a lot of us (like for instance your interlocutor saghm in a sibling thread) are rather reluctant to pick up all the New[1] Shiny stuff. It all seems to so inevitably bring with it rat's nests -- colonies of rat's nests! -- of interdependent cruft tangled up into tight balls of mud and misery. You lose the will to even start trying anything out. ___ [1]: And yeah, OK, calling Python "New" might be problematic... If we'd gotten around to picking it up some fifteen years ago it might still have been. And maybe not accrued as many layers of cruft.
- dbtablesorrows 2y ago> With, say, Turbo Pascal you compiled your code into a .COM file, copied it to a floppy, and people ran it. Just your program. On their OS. No heaps of layers of infrastructure and toolchains to get knotted into a tangle of failing interdependencies. How the fuck can it be so impossible to build stuff like that nowadays?!? Go or Java PicoCLI with graalvm gets you pretty close to this ideal. (Now Desktop GUI is a fallen idea and we are talking about CLIs). Anyway you're blaming the wrong thing. What pipx and venv do in python is fairly simple stuff. It's pretty reliable on standard setups. The problems if any come from C libraries. The NodeJS Electron stack / docker / kubernetes you can feel free to blame.
- CRConrad 2y ago> Go or Java PicoCLI with graalvm gets you pretty close to this ideal. Oh yippee, only one unnecessary VM layer. :-( > Now Desktop GUI is a fallen idea and we are talking about CLIs ??? WTF are you talking about? In the real -- i.e. boring old enterprisey -- world, people work in desktop GUIs. (Except of course where those have been replaced by shitty Web-browser UIs.)
- saghm 2y agoThe fact that there are already multiple comments with different tools recommended for how to easily deal with Python packages is a perfect example of why people like the parent commenter don't want to deal with Python in the first place. I'm sure that "just use pipx" works well for you and others, but for those of us who don't know the difference between the half dozen or so different package managers that seem to be mentioned whenever Python comes up, we don't have any clue whether pipx is the "right" choice or if "uv"/"uvx" like the sibling commenter recommends is better. We could spend time researching to figure that out, but that's exactly what we're trying to avoid in the first place!
- rmbyrro 2y agoThere's nothing inherently wrong with having options. This is the classic trade-off between convention and configuration. You can prefer a tech stack that values convention over configuration, while others prefer the opposite. This is totally fine.
- saghm 2y agoI don't disagree with your premise, but I'd argue that's not what's happening here. My perception that Python doesn't have half a dozen different tools for making package management better because the community values choice and prefers it to having a default option that does everything they want, it's that the default one isn't good enough for what people seem to want, and the community is trying to make up for that.
- darkteflon 2y agopyproject.toml + rye/uv is excellent.
- rmbyrro 2y agoIf I had to bet, at least half Python projects use the standard packaging. Python applications vary widly. Having a single standard option for packaging that is good enough for all isn't the core language goal.