Beispiel #1
0
 def bootstrap_if_necessary(self):
     from os.path import join
     from pkg_resources import resource_filename
     from infi.projector.plugins.builtins.repository import skeleton
     buildout_executable_exists = assertions.is_executable_exists(join("bin", "buildout"))
     bootstrap_py = resource_filename(skeleton.__name__, "bootstrap.py")
     with open("bootstrap.py", "w") as dst:
         with open(bootstrap_py) as src:
             dst.write(src.read())
     if not buildout_executable_exists or self.arguments.get("--force-bootstrap", False) or self.arguments.get("--newest", False):
         utils.execute_with_python(self._get_bootstrap_command())
Beispiel #2
0
 def bootstrap_if_necessary(self):
     from os.path import join
     buildout_executable_exists = assertions.is_executable_exists(join("bin", "buildout"))
     if not buildout_executable_exists or self.arguments.get("--force-bootstrap", False) or self.arguments.get("--newest", False):
         utils.execute_with_python(self._get_bootstrap_command())