make isntall

This commit is contained in:
2026-02-25 15:55:27 +02:00
parent 1565ba8c02
commit d4e1f094a2

View File

@@ -20,7 +20,29 @@ help:
@printf " make clean Remove build artifacts\n" @printf " make clean Remove build artifacts\n"
deps: deps:
$(PIP) install -e ".[build]" @set -eu; \
PIP_CMD="$(PIP)"; \
if ! $$PIP_CMD --version >/dev/null 2>&1; then \
if command -v pip3 >/dev/null 2>&1; then \
PIP_CMD="pip3"; \
elif $(PYTHON) -m ensurepip --version >/dev/null 2>&1; then \
$(PYTHON) -m ensurepip --upgrade; \
elif command -v apt-get >/dev/null 2>&1; then \
echo "pip missing; installing python3-pip via apt-get (sudo required)"; \
sudo apt-get update; \
sudo apt-get install -y python3-pip; \
elif command -v dnf >/dev/null 2>&1; then \
echo "pip missing; installing python3-pip via dnf (sudo required)"; \
sudo dnf install -y python3-pip; \
elif command -v brew >/dev/null 2>&1; then \
echo "pip missing; installing python via Homebrew"; \
brew install python; \
else \
echo "Unable to bootstrap pip automatically. Install pip for $(PYTHON) and rerun make deps."; \
exit 1; \
fi; \
fi; \
$$PIP_CMD install -e ".[build]"
build: deps build: deps
$(PYTHON) -m PyInstaller --noconfirm --clean --onefile --name flow --paths "$(SRC_DIR)" "$(ENTRYPOINT)" $(PYTHON) -m PyInstaller --noconfirm --clean --onefile --name flow --paths "$(SRC_DIR)" "$(ENTRYPOINT)"