From f3f5768b4fc37025b5267d30ff9fdd452eaec53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Sat, 1 Jun 2024 01:09:10 +0530 Subject: [PATCH] Install chromium only once (#2100) * install chromium only once * Update Makefile * Update Makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9cf2bc1f26..8faf2019aa 100644 --- a/Makefile +++ b/Makefile @@ -142,7 +142,14 @@ install-python-dependencies: poetry run pip install playwright; \ poetry run playwright install chromium; \ else \ - poetry run playwright install --with-deps chromium; \ + if [ ! -f cache/playwright_chromium_is_installed.txt ]; then \ + echo "Running playwright install --with-deps chromium..."; \ + poetry run playwright install --with-deps chromium; \ + mkdir -p cache; \ + touch cache/playwright_chromium_is_installed.txt; \ + else \ + echo "Setup already done. Skipping playwright installation."; \ + fi \ fi @echo "$(GREEN)Python dependencies installed successfully.$(RESET)"