Install chromium only once (#2100)

* install chromium only once

* Update Makefile

* Update Makefile
This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி 2024-06-01 01:09:10 +05:30 committed by GitHub
parent 9a441ea8f7
commit f3f5768b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)"