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())
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): from os import environ 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=', 'buildout:versions=no', 'no:key=value']): utils.execute_with_buildout("install {}".format(self.get_isolated_python_section_name())) self._get_pip() self._install_setuptools_and_zc_buildout() env = environ.copy() env['PYTHONPATH'] = '' utils.execute_assert_success([utils.get_isolated_executable('buildout'), 'bootstrap'], env=env)