Using Git Submodules With Python
I've read a lot of blog posts and questions on this site about the usage of git submodules and still have no idea how to better use them with python. I mean, what is the easier way
Solution 1:
I'm not saying it's impossible, but very hard and very tricky. A safer way is to turn each submodule into an installable Python module (with it's own setup.py
) and install the submodules from Git.
This link describes how to install packages from Git with setup.py
: https://stackoverflow.com/a/32689886/2952185
Solution 2:
Thankfully to Gijs Wobben and sinoroc I came up with solution that works for my case:
install_requires=['subm1 @ file://localhost/<CURENT_DIR>/path/to/subm1']
Post a Comment for "Using Git Submodules With Python"