made changes to how pip gets deployed
Changes to be committed: modified: modules/deploy.py modified: modules/pip.py
This commit is contained in:
parent
7a1205786f
commit
cd112af3a4
2 changed files with 11 additions and 5 deletions
|
|
@ -8,8 +8,7 @@ from utils import virtualenv_source, booleanize, loggify
|
||||||
from utils import print_console
|
from utils import print_console
|
||||||
|
|
||||||
from pip import setup_virtualenv
|
from pip import setup_virtualenv
|
||||||
from pip import setup as pip_requirements
|
from pip import bootstrap_pip
|
||||||
from pip import upgrade as pip_upgrade
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
@ -79,9 +78,7 @@ def bootstrap():
|
||||||
setup_rootpath()
|
setup_rootpath()
|
||||||
|
|
||||||
setup_virtualenv()
|
setup_virtualenv()
|
||||||
|
bootstrap_pip()
|
||||||
pip_upgrade() # upgrade pip to latest version in the virtualenv
|
|
||||||
pip_requirements()
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# link virtualenv to rootpath/private/virtualenv
|
# link virtualenv to rootpath/private/virtualenv
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,15 @@ def setup_virtualenv():
|
||||||
run(mkvirtualenv_cmd)
|
run(mkvirtualenv_cmd)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def bootstrap_pip():
|
||||||
|
"""
|
||||||
|
bootstraps pip
|
||||||
|
"""
|
||||||
|
upgrade()
|
||||||
|
setup()
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def upgrade():
|
def upgrade():
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue