views:

20

answers:

1

Hey Guys,

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

The bootstap.py is created with virtualenv: http://pypi.python.org/pypi/virtualenv#creating-your-own-bootstrap-scripts

Now, the entire WebApp dir is a git repo (obviously excluding the virtualenv). The purpose is to create a portable virtualenv/git environment. The prob is if you put the develop-app in your requirements.txt as develop, it will install it under /src in your virtualenv dir, and symlink that into your virtual-env site-packages. What you end up with is two copies of your source code, one that's tracked by git and the one in the Virtualenv that you use but is not tracked by git.

How would you ensure that changes made in the directory tracked by git (develop-app) automatically gets updated within your virtualenv?

A: 

How about not adding your develop app to the requirements.txt list.. and just run the code from your git repro? The point of requirements is to specify which requirements your development app has right? It is rather strange to me to make it require itself.

Stephan