Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
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
Esempio n. 4
0
 def bootstrap(self, force=False):
     return bootstrap.bootstrap(self.context, force=force)
Esempio n. 5
0
 def bootstrap(self, force=False):
     return bootstrap.bootstrap(self.context, force=force)
Esempio n. 6
0
 def bootstrap_gstreamer(self, force=False):
     return bootstrap.bootstrap(self.context,
                                force=force,
                                specific="gstreamer")
Esempio n. 7
0
 def bootstrap_salt(self, force=False):
     return bootstrap.bootstrap(self.context, force=force, specific="salt")
Esempio n. 8
0
 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)
Esempio n. 9
0
 def bootstrap_gstreamer(self, force=False):
     return bootstrap.bootstrap(self.context, force=force, specific="gstreamer")
Esempio n. 10
0
 def bootstrap_salt(self, force=False):
     return bootstrap.bootstrap(self.context, force=force, specific="salt")
Esempio n. 11
0
 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)