When I install a python module using pip -t . pip downloads the module into a specific folder in the current directory. Python then searches the current directory for the module when it is imported and all is well.
What is the best practise for whether to add the module folders into GIT?
It seems to me that checking in these folders is not a good idea, instead the build process should download them from the requirements file rather than get them from SCM.
However adding each folder into .gitignore seems overly burdensome.
I was expecting the python modules to go into some special directory such as python_modules which I could then add to .gitignore however this does not appear to be the case. Or is there some kind of hook that I can use to get pip to update the .gitignore file automatically when installing new modules?
So what do people do to manage these files? My googling has so far not revealed much and I am not at a loss as to what to do?