def bootstrap_command_only(topdir): from servo.bootstrap import bootstrap context = DummyContext() context.topdir = topdir force = False if len(sys.argv) == 3 and sys.argv[2] == "-f": force = True bootstrap(context, force) return 0
def bootstrap_command_only(topdir): # we should activate the venv before importing servo.boostrap # because the module requires non-standard python packages _activate_virtualenv(topdir, is_firefox_checkout(topdir)) from servo.bootstrap import bootstrap context = DummyContext() context.topdir = topdir force = False if len(sys.argv) == 3 and sys.argv[2] == "-f": force = True bootstrap(context, force) return 0
def bootstrap(self, force=False): return bootstrap.bootstrap(self.context, force=force)
def bootstrap_gstreamer(self, force=False): return bootstrap.bootstrap(self.context, force=force, specific="gstreamer")
def bootstrap_salt(self, force=False): return bootstrap.bootstrap(self.context, force=force, specific="salt")
def bootstrap(self, force=False): # This entry point isn't actually invoked, ./mach bootstrap is directly # called by mach (see mach_bootstrap.bootstrap_command_only) so that # it can install dependencies without needing mach's dependencies return bootstrap.bootstrap(self.context, force=force)