def install_isolated_python_if_necessary(self): from infi.execute import execute_assert_success, ExecutionError if not self.arguments.get("--use-isolated-python", False): return if not assertions.is_isolated_python_exists() or self.arguments.get("--newest", False): with utils.buildout_parameters_context(['buildout:develop=']): utils.execute_with_buildout("install {}".format(self.get_isolated_python_section_name())) self.arguments["--force-bootstrap"] = True utils.execute_with_isolated_python(self._get_bootstrap_command())
def install_isolated_python_if_necessary(self): if not self.arguments.get("--use-isolated-python", False): return self._remove_setuptools_egg_link() if not assertions.is_isolated_python_exists() or self.arguments.get("--newest", False): with utils.buildout_parameters_context(['buildout:develop=']): utils.execute_with_buildout("install {}".format(self.get_isolated_python_section_name())) self.arguments["--force-bootstrap"] = True utils.execute_with_isolated_python(self._get_bootstrap_command())