File tree 1 file changed +4
-12
lines changed
1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,10 @@ def managecmd(cmd):
25
25
26
26
27
27
@task
28
- def create_virtualenv ():
29
- if VIRTUALENV .startswith (pjoin ('/data' , 'src' , settings .CLUSTER )):
30
- local ('rm -rf %s' % VIRTUALENV )
31
-
28
+ def create_virtualenv (update_on_change = False ):
32
29
helpers .create_venv (VIRTUALENV , settings .PYREPO ,
33
- pjoin (ZAMBONI , 'requirements/prod.txt' ))
30
+ pjoin (ZAMBONI , 'requirements/prod.txt' ),
31
+ update_on_change = update_on_change )
34
32
35
33
if settings .LOAD_TESTING :
36
34
helpers .pip_install_reqs (pjoin (ZAMBONI , 'requirements/load.txt' ))
@@ -157,13 +155,7 @@ def pre_update(ref=settings.UPDATE_REF):
157
155
158
156
@task
159
157
def update ():
160
- def get_status ():
161
- with lcd (ZAMBONI ):
162
- return local ('git diff HEAD@{1} HEAD --name-only' , capture = True )
163
-
164
- if not getattr (settings , 'DEV' , False ) or 'requirements/' in get_status ():
165
- execute (create_virtualenv )
166
-
158
+ execute (create_virtualenv , getattr (settings , 'DEV' , False ))
167
159
execute (update_locales )
168
160
execute (update_products )
169
161
execute (compress_assets )
You can’t perform that action at this time.
0 commit comments