Skip to content

Commit

Permalink
prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinnfd committed Jul 10, 2024
1 parent cbfdc55 commit 1f30e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pre_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@


def build() -> None:
if os.environ.get("SKIP_PRE_BUILD", "") == "true":
print("Skipping front end build...")
return
if which("yarn") is None:
print(
"Locust requires the yarn binary to be available in this shell to build the web front-end.\nSee: https://docs.locust.io/en/stable/developing-locust.html#making-changes-to-locust-s-web-ui"
)
exit(1)
if os.environ.get("SKIP_PRE_BUILD", "") == "true":
print("Skipping front end build...")
return
print("Building front end...")
subprocess.run(["make", "frontend_build"])

Expand Down

0 comments on commit 1f30e65

Please sign in to comment.