pyodide/packages/Makefile

28 lines
880 B
Makefile
Raw Normal View History

export PYODIDE_ROOT=$(abspath ..)
2018-06-20 18:54:47 +00:00
include ../Makefile.envs
ifeq ($(strip $(PYODIDE_PACKAGES)),)
else
ONLY_PACKAGES=--only "$(PYODIDE_PACKAGES)"
endif
all: .artifacts/bin/pyodide-build
mkdir -p build-logs
echo PYTHONPATH="$(HOSTINSTALLDIR)/lib/python:$(PYODIDE_ROOT)/pyodide-build/"
PYTHONPATH="$(HOSTINSTALLDIR)/lib/python:$(PYODIDE_ROOT)/pyodide-build/" python -m pyodide_build buildall . ../build \
$(ONLY_PACKAGES) --n-jobs $${PYODIDE_JOBS:-4} \
--log-dir=build-logs
.artifacts/bin/pyodide-build: ../pyodide-build/pyodide_build/**
mkdir -p $(HOSTINSTALLDIR)
$(HOSTPYTHON) -m pip install -e ../pyodide-build --no-deps --prefix $(HOSTINSTALLDIR)
update-all:
2021-07-12 11:54:01 +00:00
for pkg in $$(find . -maxdepth 1 ! -name ".*" -type d -exec basename {} \; | tail -n +2); do \
pyodide-build mkpkg "$${pkg}" --update; \
done
2018-06-20 18:54:47 +00:00
clean:
2020-12-10 19:37:08 +00:00
rm -rf ./*/build ./*/build.log
2020-12-07 23:19:16 +00:00
rm -rf ./.artifacts