Skip to content

Commit

Permalink
Use virtualenv for pyc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Andrews committed Apr 24, 2017
1 parent bf85ae6 commit 5230907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fusionbox/fabric/django/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,14 @@ def push(gitref, qad, backupdb):

collectstatic()

with cd(directory):
with contextlib.nested(use_virtualenv(), cd(virtualenv_src)):
generate_pyc()

if should_pip_install:
# "pip install" generates pyc files in site-packages
# but "pip install -e" doesn't generate any pyc files
virtualenv_src = os.path.join(VIRTUALENV, 'src')
with cd(virtualenv_src):
with contextlib.nested(use_virtualenv(), cd(virtualenv_src)):
generate_pyc()

with hide('running', 'stdout'):
Expand Down

0 comments on commit 5230907

Please sign in to comment.