Created
December 3, 2012 01:30
-
-
Save johngag/4192053 to your computer and use it in GitHub Desktop.
Fabric Python/Django requirements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_requirements(): | |
requirements = os.path.join(env.home, 'requirements') | |
with prefix('source %s/bin/activate' % env.python_path): | |
with cd(requirements): | |
cmd=['pip install'] | |
cmd += ['--requirement %s' % os.path.join(requirements, 'apps.txt')] | |
print(cmd) | |
run(' '.join(cmd)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment