Created
September 4, 2012 22:50
-
-
Save theoden-dd/3627640 to your computer and use it in GitHub Desktop.
changes in interaction with pip.py
This file contains hidden or 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
# somewhere in WebProject | |
@task_mehtod | |
def install_r(self, what=None, options='', restart=True): | |
""" | |
Installs pip requirements listed in ``<PIP_REQUIREMENTS_PATH>/<file>.txt`` file | |
and reloads all apps of the project, if specified. | |
""" | |
pip.install_r(what, options) | |
if restart: | |
for app in self.apps: | |
app.restart() | |
@task_method | |
def update_r(self, what=None, options='', restart=True): | |
""" | |
Updates pip requirements listed in ``<PIP_REQUIREMENTS_PATH>/<file>.txt`` file | |
and reloads all apps of the project, if specified. | |
""" | |
pip.update_r(what, options) | |
if restart: | |
for app in self.apps: | |
app.restart() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment