def make_virtualenv(env):
if find_executable("<STR_LIT>") is not None:<EOL><INDENT>cmd = ["<STR_LIT>"] + [env]<EOL>subprocess.check_call(cmd)<EOL><DEDENT>else:<EOL><INDENT>path = urlretrieve(VENV_URL)[<NUM_LIT:0>]<EOL>subprocess.check_call(["<STR_LIT>", "<STR_LIT>", path])<EOL>subprocess.check_call(<EOL>[sys.executable, "<STR_LIT>" % VENV_VERSION, env]<EOL>)<EOL>os.unlink(path)<EOL>shutil.rmtree("<STR_LIT>" % VENV_VERSION)<EOL><DEDENT>
Create a virtualenv