Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from fabric.api import local
import pip
def freeze ():
local("pip freeze > requirements.txt")
local("git add requirements.txt")
local("git commit -v")
def upgrade ():
for dist in pip.get_installed_distributions():
local("pip install --upgrade {0}".format(dist.project_name))

This comment has been minimized.

Copy link

@thisizkp thisizkp commented Mar 13, 2014

"import pip" in windows leads to infinte tracebacks..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.