<s> import os <EOL> import sys <EOL> import subprocess <EOL> import shutil <EOL> p = subprocess . Popen ( [ "<STR_LIT>" , "<STR_LIT>" ] , stdout = open ( "<STR_LIT>" , '<STR_LIT:w>' ) ) <EOL> if p . wait ( ) != <NUM_LIT:0> : <EOL> print >> sys . stderr , "<STR_LIT>" <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> VIRTUALENV_SCRIPT = os . path . dirname ( __file__ ) + "<STR_LIT>" <EOL> if os . path . exists ( "<STR_LIT>" ) : <EOL> print "<STR_LIT>" <EOL> subprocess . check_call ( [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> args = [ sys . executable , VIRTUALENV_SCRIPT , "<STR_LIT>" , sys . executable , "<STR_LIT>" ] <EOL> print "<STR_LIT>" , args <EOL> subprocess . check_call ( args ) <EOL> sh_script = """<STR_LIT>""" . strip ( ) <EOL> subprocess . check_call ( [ "<STR_LIT>" , "<STR_LIT:-c>" , sh_script ] ) <EOL> print <EOL> print "<STR_LIT>" </s>
