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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -