def _upgrade_pip(): with prefix(env.virtualenvwrapper_activate): run('pip install -q -U pip setuptools wheel || pip install -U pip setuptools wheel')