FIX: Uses python3 if python is not available

This commit is contained in:
Nicolás Hatcher
2025-01-19 18:11:52 +01:00
committed by Nicolás Hatcher Andrés
parent feb22cced3
commit 69ca1f178c

View File

@@ -1,8 +1,16 @@
# In some platforms, python is called python3
PYTHON := $(shell command -v python 2>/dev/null || command -v python3 2>/dev/null)
# If neither is found, fail immediately
ifeq ($(PYTHON),)
$(error No python found. Please install python.)
endif
all: all:
wasm-pack build --target web --scope ironcalc --release wasm-pack build --target web --scope ironcalc --release
cp README.pkg.md pkg/README.md cp README.pkg.md pkg/README.md
tsc types.ts --target esnext --module esnext tsc types.ts --target esnext --module esnext
python fix_types.py $(PYTHON) fix_types.py
rm -f types.js rm -f types.js
tests: tests: