4 ms·
For a Python project, what are the pros/cons of 1: A setup.py that installs dependencies like this: pip install git+https://github.com/dependency/repo 2:
by TekMol 2y ago
For a Python project, what are the pros/cons of
1: A setup.py that installs dependencies like this:
pip install git+https://github.com/dependency/repo
2: Git submodules
?
- skribanto 2y agoI like to wrap it in a venv (pure python project) or nix flake (mixed languages)
- TekMol 2y agoThat seems to be about isolation, not about dependency management, right? I use Docker containers for that. But my question was about dependency management.
- est 2y ago3. copy everything into vendor/lib folder. version pinning, no extra install needed, works offline, zero deps headaches. Example: requests.packages.*
- TekMol 2y agoDo you mean a completely manual workflow where you copy dependencies into the vendor dir by hand and then they are part of your project? If so, you back them up with your project backups and they also go into your repos history? Otherwise, I would be interested, how you "copy" a git repo that goes into your vendor dir. Where you put the list of repos that need to get copied. Which command you run to copy them all. How you handle it if they have sub-dependencies and how those get installed in your workflow.
- est 2y ago> Do you mean a completely manual workflow Coding is a manual process anyway, no? It's no different than writing code on your local machine and you decides to use some third-party modules.