News for hackers. Stuff that matters.
Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by disgruntledphd2 on Thursday February 11, 2021 @06:49AM (#26100529)
How do you handle C/C++ dependencies?

This is super common in the DS/ML space, and until recently, pip was actively unhelpful (i see you have numpy version x, let's install version y silently because you definitely hand review all the transitive dependencies before installing a new package).

Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by Isinlor on Thursday February 11, 2021 @07:14AM (#26100664)
In that case building a container image and testing it before deployment seems to be the easiest solution, certainly not ideal.

Otherwise, I have no idea how to handle cross language dependencies well. My guess would be that operating system package managers ought to handle it, but I never tried to work with something like Debian repositories. Judging by what I've heard from other people it's a lot of pain.

Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by Doxin on Thursday February 11, 2021 @07:15AM (#26100669)
These days ideally those dependencies would ship a wheel which solves the problem.

If they don't you are expected to have a working C/C++ compiler set up which is definitely not ideal. At least on linux it's often as simple as installing a build-essentials package. No clue what that'd be like on other OSes since I don't use them.

Re:A Poetic Apology: Or Why Should You Use Poetry to Manage ... by disgruntledphd2 on Friday February 12, 2021 @04:40PM (#26118881)
Only if the wheels aren't incompatible.

I think my issues are really with pip and it's dependency resolver. Give me conda every day, it may take a while but it handles compiled dependencies and doesn't break my environment without at least telling me.

And yes, I use docker containers now.