Backed out 4 changesets (bug 1666345, bug 1661624, bug 1667152, bug 1666347) for causing mochitest failures CLOSED TREE

Backed out changeset 8ce536574e74 (bug 1666347)
Backed out changeset 7cc5b13a3bf6 (bug 1666345)
Backed out changeset e112876ba18b (bug 1661624)
Backed out changeset 0f03ce337449 (bug 1667152)
This commit is contained in:
Noemi Erli
2020-11-16 21:06:12 +02:00
parent b1d3e523c4
commit 8daece26d4
189 changed files with 74281 additions and 78 deletions

View File

@@ -31,7 +31,6 @@ from mach.decorators import (
CommandProvider,
Command,
)
from mach.util import UserError
here = os.path.abspath(os.path.dirname(__file__))
@@ -54,15 +53,8 @@ class MachCommands(MachCommandBase):
default=False,
help="Use ipython instead of the default Python REPL.",
)
@CommandArgument(
"--requirements",
default=None,
help="Install this requirements file before running Python",
)
@CommandArgument("args", nargs=argparse.REMAINDER)
def python(
self, no_virtualenv, no_activate, exec_file, ipython, requirements, args
):
def python(self, no_virtualenv, no_activate, exec_file, ipython, args):
# Avoid logging the command
self.log_manager.terminal_handler.setLevel(logging.CRITICAL)
@@ -71,9 +63,6 @@ class MachCommands(MachCommandBase):
"PYTHONDONTWRITEBYTECODE": str("1"),
}
if requirements and no_virtualenv:
raise UserError("Cannot pass both --requirements and --no-virtualenv.")
if no_virtualenv:
from mach_bootstrap import mach_sys_path
@@ -84,10 +73,6 @@ class MachCommands(MachCommandBase):
if not no_activate:
self.virtualenv_manager.activate()
python_path = self.virtualenv_manager.python_path
if requirements:
self.virtualenv_manager.install_pip_requirements(
requirements, require_hashes=False
)
if exec_file:
exec(open(exec_file).read())