зеркало из https://github.com/mozilla/gecko-dev.git
Bug 794509 - Part 2: Move mach command modules into a mach.commands sub-module; r=jhammel
This patch on its own will break mach. Part 3 will refactor mach's loader to discover and load modules using a modified module finding method. --HG-- rename : python/mach/mach/settings.py => python/mach/mach/commands/settings.py rename : python/mach/mach/build.py => python/mozbuild/mach/commands/build.py rename : python/mach/mach/testing.py => python/mozbuild/mach/commands/testing.py rename : python/mach/mach/warnings.py => python/mozbuild/mach/commands/warnings.py
This commit is contained in:
Родитель
ad06cd046e
Коммит
0fdac85994
1
mach
1
mach
|
@ -38,7 +38,6 @@ our_dir = os.path.dirname(os.path.abspath(__file__))
|
|||
try:
|
||||
import mach.main
|
||||
except ImportError:
|
||||
SEARCH_PATHS.reverse()
|
||||
sys.path[0:0] = [os.path.join(our_dir, path) for path in SEARCH_PATHS]
|
||||
|
||||
import mach.main
|
||||
|
|
|
@ -22,11 +22,10 @@ from mach.registrar import populate_argument_parser
|
|||
# Import sub-command modules
|
||||
# TODO Bug 794509 do this via auto-discovery. Update README once this is
|
||||
# done.
|
||||
from mach.build import Build
|
||||
from mach.settings import Settings
|
||||
from mach.testing import Testing
|
||||
from mach.warnings import Warnings
|
||||
|
||||
from mach.commands.build import Build
|
||||
from mach.commands.settings import Settings
|
||||
from mach.commands.testing import Testing
|
||||
from mach.commands.warnings import Warnings
|
||||
|
||||
# Classes inheriting from ConfigProvider that provide settings.
|
||||
# TODO this should come from auto-discovery somehow.
|
||||
|
|
|
@ -10,6 +10,6 @@ setup(
|
|||
name='mozbuild',
|
||||
description='Mozilla build system functionality.',
|
||||
license='MPL 2.0',
|
||||
packages=['mozbuild'],
|
||||
packages=['mach', 'mozbuild'],
|
||||
version=VERSION
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче