3 ms·
There are two constraints: we use Python and we run multiple copies of the software (with potentially version-incompatible modules) on the same host. That mean
by icebraining 10y ago
There are two constraints: we use Python and we run multiple copies of the software (with potentially version-incompatible modules) on the same host.
That means we'd have to use virtualenv or similar, plus pip or easy_install to actually fetch and install the modules. On the developer side, it means having to manually update the dependencies file to upgrade a module, while with submodules they can just do "git pull" inside it and then "git add" in the parent repo, which auto-detects the new version.
I'd love to see a simpler approach, but I couldn't find it.
- WorldMaker 10y agoAh, Python. Yeah, virtualenv + pip or docker + pip would probably be a better way to manage that sort of thing and increase separation of your git repositories (and better yet, better separation of your Python VMs), but I can see why submodules feel easier in this case if you are dealing with system global installs of Python packages right now.