py-path.mk invokes $(JW_PKG_PY) to compute JW_PKG_PYTHON_PATH, but does not include the file that defines the variable. Not a problem from inside jw-pkg, but nice to have if you want to include std-targets.mk and py-defs.mk without anything else, so include it. Also drop a dead debug line in the py-path target. Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.1.0 Signed-off-by: Jan Lindemann <jan@janware.com>
17 lines
574 B
Makefile
17 lines
574 B
Makefile
include $(JWBDIR)/make/platform.mk # For JW_PKG_PY
|
|
|
|
PYTHONPATH_ENV := $(PYTHONPATH)
|
|
ifeq ($(origin JW_PKG_PYTHON_PATH),undefined)
|
|
JW_PKG_PYTHON_PATH := $(shell $(JW_PKG_PY) --topdir-format absolute projects pythonpath --delimiter ' ' $(PROJECT) $(PREREQ_RUN))
|
|
endif
|
|
export PYTHONPATH := $(subst $(space),:,$(JW_PKG_PYTHON_PATH))
|
|
export MYPYPATH := $(PYTHONPATH)
|
|
|
|
all:
|
|
|
|
clean: py-tools.clean
|
|
py-tools.clean:
|
|
$(RM) -rf $(wildcard *.pyc) __pycache__ .mypy_cache .ruff_cache .pytest_cache
|
|
|
|
py-path:
|
|
@echo "PYTHONPATH=$(PYTHONPATH)"
|