def install_dependencies(self):
<EOL>if self._skip_virtualenv:<EOL><INDENT>LOG.info('<STR_LIT>')<EOL>return<EOL><DEDENT>has_reqs = _isfile(self._requirements_file) or self._requirements<EOL>if self._virtualenv is None and has_reqs:<EOL><INDENT>LOG.info('<STR_LIT>')<EOL>self._build_new_virtualenv()<EOL>self._install_requirements()<EOL><DEDENT>elif self._virtualenv is None and not has_reqs:<EOL><INDENT>LOG.info('<STR_LIT>')<EOL>self._pkg_venv = False<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>
Creates a virtualenv and installs requirements