Skip to content

Commit

Permalink
Bug 795769 - Add "bootstrap" command to mach; r=ted
Browse files Browse the repository at this point in the history
The command is currently just a proxy into mozboot.

DONTBUILD (NPOTB)
  • Loading branch information
indygreg committed Oct 11, 2012
1 parent 0b2e6b5 commit 4ce6452
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mach
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if sys.version_info[0] == 2 and sys.version_info[1] < 7:
# TODO Bug 794506 Integrate with the in-tree virtualenv configuration.
SEARCH_PATHS = [
'python/mach',
'python/mozboot',
'python/mozbuild',
'build',
'build/pymake',
Expand All @@ -37,6 +38,7 @@ SEARCH_PATHS = [
# Individual files providing mach commands.
MACH_MODULES = [
'layout/tools/reftest/mach_commands.py',
'python/mozboot/mozboot/mach_commands.py',
'testing/mochitest/mach_commands.py',
'testing/xpcshell/mach_commands.py',
]
Expand Down
23 changes: 23 additions & 0 deletions python/mozboot/mozboot/mach_commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this,
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import unicode_literals

from mozbuild.base import MozbuildObject

from mach.base import CommandArgument
from mach.base import CommandProvider
from mach.base import Command

@CommandProvider
class Bootstrap(MozbuildObject):
"""Bootstrap system and mach for optimal development experience."""

@Command('bootstrap',
help='Install required system packages for building.')
def bootstrap(self):
from mozboot.bootstrap import Bootstrapper

bootstrapper = Bootstrapper()
bootstrapper.bootstrap()

0 comments on commit 4ce6452

Please sign in to comment.