Re:Building Go Programs with Nix Flakes
by drpyser22 on Wednesday December 14, 2022 @02:02PM
(#33988338)
What would you consider a sensible solution?
What about
* Pip-tools(requirements.in + requirements.txt)
* Poetry (pyproject.toml+poetry.lock)
* Pipenv(Pipfile+Pipfile.lock)
Those and others enable easy declaration of direct dependencies and compile (resolve) a lock file of the actual dependency graph with hashes. Those tools have their issues and idiosyncrasies, but the dependency declaration aspect seems sensible and functional.
The Python ecosystem also doesn't seem to have a sensible solution for dependency declaration in general. It's kind of remarkable that anything works at all in Python land, it's a lot of "let's hope it works often enough". To be fair it does work out a lot of the time, but when that fails you end up coming to people like me.
I should do some research and see if I can figure out the best way to do this in Python, but I don't use Python at all personally or professionally.