git submodules - Structure dependencies directory in python project -
i have python project , wish include dependencies in single directory named "deps" follows:
+deps ---+dep1 ---+dep2 +module1 +module2
an import statement this:
import deps.dep1
my intention have "deps" submodule in git. right way go it? i've chosen course automating deploy of python using virtualenvs such pain!
edit: if choose go way, need add "deps" directory pythonpath or use sys.path.append(). trying figure out solution without modifying import statements , without having place export pythonpath statement in bash profile(which again cause issues during deployment) please help!
there no right or wrong way it. many projects prefer bundle dependencies keep tight control , avoid having depend on package managers, or availability of packages on given system.
i keep deps
part of main git repository , have each dependency separate git submodule, fork of respective project's own git/hg repository.
Comments
Post a Comment