by Waterluvian · 3y ago · 0 comments
And then I got to re-learn how very bad Poetry and python dependency management is. I’m trying to update pyyaml to 6.0.1 and Poetry systematically downloaded every single major, minor, patch version of another dependency in trying to find which would fit the version constraints. Took half an hour.
Sounds like fundamental design issue more than anything.
The only semi-sane workaround I know of is to use pip's `--only-binary` option to prevent any automatic builds at package installation time. Then you usually will also need your own package server for storing precompiled wheels for those third-party-dependencies that don't published compiled packages on pypi. This way you build the packages using some random tool version only once, so if it works the first time it will keep working.
In other language ecosystems were the package management isn't built on a tower of shit, this problem doesn't exist in the first place.
How? Are you running `pip install` every time you run your pipeline? Why do you need to constantly be reinstalling your packages?
Great news! Better do that then have to do it manually
But yes it sucks, still Poetry is much better than Pip (where it just gives up and tell you to go deal with the issue yourself!)
Now why do people care about Cython and especially in things like dependencies I don't understand. awscli shoud be an independent package! "oh but it is faster" are you counting the time it takes to fix things when they break because you are depending on a fragile thing?
If one of the build deps has no wheel then you're fucked, though. At some level you have to rely on a toolchain.