PIP_INSTALL = ./.virtualenv/bin/pip install default: develop .virtualenv: # On sandboxes, we need to use OS-installed packages to avoid pip # building them from source, but on production we have so old # virtualenv, which doesn't understand --system-site-packages, # hence teh kludge below. virtualenv --setuptools --system-site-packages .virtualenv || virtualenv --setuptools .virtualenv install-virtualenv: .virtualenv develop: install-virtualenv setup.py ./.virtualenv/bin/python setup.py develop --script-dir=./bin/ $(PIP_INSTALL) -r requirements.txt