I am developing a django project using git for code management. The main project has a number of applications as submodules, each of which can be used independently of each other, so each in a separate git repository. All of these applications are under development, and at least one of them branches out from another project. These applications are installed via pip, when repo is cloned, in the root directory there is setup.py and README, etc., and then the actual application in a subfolder.
If I install applications (applications), then the working code will be in a different place in the folder under git control, so every time I change the code, I need pip install(or is there another pip command for this?) To update the code, in which python is looking for.
I could use pip install -eto prevent the situation described above. However, then I need each application to be cloned into separate folders: I cannot just clone the applications in project/appsand have project/apps/fooand project/apps/bar, since they both try to reset their setup.py to project/apps. Instead, I will need to clone foo in project/apps/foo, but then the actual code is in project/apps/foo/foo. It strikes me as ugly and not very django-ish.
Is there any other, more beautiful way to do what I'm trying to do?
source
share