by robertk · 7y ago · 0 comments
Whereas I’ve spent a lot more time getting pip packages to install, update, etc before switching to conda.
Conda never broke anything for me - it did downgrade after upstream broke things. Pip, on the other hand, broke things more than once.
The lack of a Conda lockfile makes it impractical to use outside of toy research proof of concepts.
That's a very inefficient way to run your CI, with conda and pip alike.
Instead, you could build your environment once in a Docker image and use that as your build image.
Saves a lot of time on your builds, guarantees reproducibility, and will work even when package servers are unavailable.
We build images based on their commit hash, caching off the last commit hash. That works but has issues with merges and the first commit to a branch.
We also do it based on the branch name, but Docker has issues around specifying multiple cache from arguments in the CLI. That causes unnecessary invalidations on branches.
That all leads to more rebuilds than I would like.
And while lockfiles are convenient, they are far from making anything “impractical”. I take Conrad correctness over minor conveniences any day.
Lockfiles are not just convenient, they are all but required for anything serious. You can’t have your dependencies break or change under your feet from one build to the next. Your builds need to be reproducible.
I’ll take all that over whatever conda has to offer any day.