aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-22 11:41:44 +0200
committerGitHub <noreply@github.com>2023-06-22 11:41:44 +0200
commita98dcfffe0d10f57bb483c75c5363783e7231ae3 (patch)
tree924e008ab3179995d68c7ac798700324d48c79a3 /python
parent7aaad0aa7eac2d0c98ff17091013fda77359397d (diff)
parenta57c49a4bb5d5bbb69d7250e43334fada621e9b0 (diff)
downloadservo-a98dcfffe0d10f57bb483c75c5363783e7231ae3.tar.gz
servo-a98dcfffe0d10f57bb483c75c5363783e7231ae3.zip
Auto merge of #29909 - mrobinson:mach-bootstrap-macos, r=mukilan
Implement `./mach bootstrap` for MacOS <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they just change build scripts. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'python')
-rw-r--r--python/servo/platform/macos.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/servo/platform/macos.py b/python/servo/platform/macos.py
index 0f5ca632b2f..38169e9a75a 100644
--- a/python/servo/platform/macos.py
+++ b/python/servo/platform/macos.py
@@ -54,6 +54,21 @@ class MacOS(Base):
return False
return True
+ def _platform_bootstrap(self, _cache_dir: str, force: bool) -> bool:
+ installed_something = False
+ try:
+ brewfile = os.path.join(util.SERVO_ROOT, "etc", "homebrew", "Brewfile")
+ output = subprocess.check_output(
+ ['brew', 'bundle', 'install', "--file", brewfile]
+ ).decode("utf-8")
+ print(output)
+ installed_something = "Installing" in output
+ except subprocess.CalledProcessError as e:
+ print("Could not run homebrew. Is it installed?")
+ raise e
+ installed_something |= self._platform_bootstrap_gstreamer(False)
+ return installed_something
+
def _platform_bootstrap_gstreamer(self, force: bool) -> bool:
if not force and self.is_gstreamer_installed(cross_compilation_target=None):
return False