3 ms·
I highly recommend nix for this type of problem, both on linux and macos. You can make all kinds of dependencies available simultaneously in the same file syste
by singron 6y ago
I highly recommend nix for this type of problem, both on linux and macos. You can make all kinds of dependencies available simultaneously in the same file system. You don't have to run vms, or copy in and out of containers. The build cache works great and is much better than a linear Dockerfile. Tweaking dependencies at any level is pretty easy.
- emptysea 6y agoIt's been a while since I last ventured into nix with python, but when I last tried it seemed way less user friendly compared to the current python solutions like poetry[1]. With poetry I can `poetry add foo` and `foo` will be added as a dependency and importantly all its dependencies will be locked in the `poetry.lock` file. With Nix either you write all your definitions from scratch, which feels like maintaining a lock file by hand, or you specify a package like `numpy` in your dependencies that is defined in the nix packages and hope that the next time you update nix packages nothing breaks. Also if you want a package that isn't in nix packages you have to write the definition yourself, which isn't a big deal if you start a project off with nix and gradually add dependencies as you need them, but if you are trying to migrate your project with 200+ dependencies it feels really tedious. [1]: https://python-poetry.org/ https://python-poetry.org/