News for hackers. Stuff that matters.
Re:Learning Go as a Python Developer: The Good and the Bad by AlphaSite on Monday July 18, 2022 @03:50PM (#32142752)
I recommend using poetry and just moving on with your life, it’s far easier than trying to use pip (which is totally doable, but not clean).
Re:Learning Go as a Python Developer: The Good and the Bad by LtWorf on Monday July 18, 2022 @04:27PM (#32143218)
But poetry requires pip… you can't use it without using pip
Re:Learning Go as a Python Developer: The Good and the Bad by gen220 on Monday July 18, 2022 @04:34PM (#32143295)
Poetry requires pip in the way that `go mod` requires `go get`, i.e. Poetry allows one to operate at a higher level of abstraction, where it's harder to make mistakes and generally easier to manage your dependency tree.
Re:Learning Go as a Python Developer: The Good and the Bad by LtWorf on Tuesday July 19, 2022 @06:13PM (#32158676)
Abstractions are amazing until they break and you have to fix them.
Re:Learning Go as a Python Developer: The Good and the Bad by gen220 on Tuesday July 19, 2022 @10:25PM (#32160619)
Sure, this is true for every abstraction: some are more air-tight or leaky than others, but IME Poetry and go mod are fairly solid.

I haven’t had to use pip in a long time. Just like I haven’t had to use `go get` in a while.

I mean it’s not the most rock solid abstraction, but introducing sane package management in an OSS environment with a decade plus of history is very hard. Against that background, they are doing pretty well, IMO.

Re:Learning Go as a Python Developer: The Good and the Bad by ryanianian on Monday July 18, 2022 @04:36PM (#32143320)
Kind of. It's intended to be a system package/tool. In that regard you can use, wait for it, yet another python tool - pipx. So instead of installing poetry to a venv or whatever using pip, you can use `pipx run poetry`. Now you have to install pipx...
Re:Learning Go as a Python Developer: The Good and the Bad by biorach on Monday July 18, 2022 @04:33PM (#32143285)
They clearly mean using pip on its own, presumably by `pip freeze > requirements.txt`