Pip, Virtualenv & Git project setup and reload

Assuming you have a project setup like this:

-WebApp
   |_ requirements.txt
   |_ bootstrap.py (virtualenv bootstrap script)
   |_ src
       |_ setup.py
       |_ develop-app
             |_ somecode.py
             |_ morecode.py

bootstrap.py created using virtualenv:

https://virtualenv.pypa.io/en/latest/reference.html#creating-your-own-bootstrap-scripts

Now the entire WebApp directory is a git repository (obviously excluding virtualenv). The goal is to create a virtualenv / git portable environment. The problem is that if you put develop-appin your requirements.txthow to develop, it will set it under the / src directory in your virtualenv and symlink, which will be placed in your sites sites virtualenv. As a result, you get two copies of the source code that are tracked with git, and the one you use in Virtualenv but not tracked by git.

, , , git (develop-app), virtualenv?

+5
1

, .txt.. git? - , ? , .

+4

All Articles