mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Better check that required modules are installed
This commit is contained in:
parent
6b8aaf3c57
commit
e31744e48e
1 changed files with 5 additions and 0 deletions
|
@ -287,11 +287,16 @@ class MachCommands(CommandBase):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import wptrunner
|
import wptrunner
|
||||||
|
from wptrunner.browsers import servo
|
||||||
except ImportError:
|
except ImportError:
|
||||||
subprocess.check_call(["pip", "install", "-r",
|
subprocess.check_call(["pip", "install", "-r",
|
||||||
path.join("tests", "wpt", "harness", "requirements.txt")])
|
path.join("tests", "wpt", "harness", "requirements.txt")])
|
||||||
subprocess.check_call(["pip", "install", "-r",
|
subprocess.check_call(["pip", "install", "-r",
|
||||||
path.join("tests", "wpt", "harness", "requirements_servo.txt")])
|
path.join("tests", "wpt", "harness", "requirements_servo.txt")])
|
||||||
|
try:
|
||||||
|
import blessings
|
||||||
|
except ImportError:
|
||||||
|
subprocess.check_call(["pip", "install", "blessings"])
|
||||||
|
|
||||||
# This is an unfortunate hack. Because mozlog gets imported by wptcommandline
|
# This is an unfortunate hack. Because mozlog gets imported by wptcommandline
|
||||||
# before the virtualenv is initalised it doesn't see the blessings module so we don't
|
# before the virtualenv is initalised it doesn't see the blessings module so we don't
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue