def _create_global_python_virtualenv(env, venv_name, reqs_file, reqs_url):
    if venv_name in env.safe_run_output("bash -l -c lsvirtualenv | grep {0} || true"
        .format(venv_name)):
        env.logger.info("Virtualenv {0} already exists".format(venv_name))
    else:
        with _make_tmp_dir():
            if reqs_file or reqs_url:
                if not reqs_file:
                    # This mean the url only is provided so 'standardize ' the file name
                    reqs_file = 'requirements.txt'
                cmd = "bash -l -c 'mkvirtualenv -r {0} {1}'".format(reqs_file, venv_name)
            else:
                cmd = "bash -l -c 'mkvirtualenv {0}'".format(venv_name)
            if reqs_url:
                _remote_fetch(env, reqs_url, reqs_file)
            env.safe_run(cmd)
            env.logger.info("Finished installing virtualenv {0}".format(venv_name))
launch(
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/custom/shared.py/_create_global_python_virtualenv--crossover with--dataset/ETHPy150Open brousch/sl4a_pydroid_mock_api/src/android/utils/androidhelper_r6.py/Android.launch