py-path.mk: Include platform.mk for JW_PKG_PY

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>
This commit is contained in:
Jan Lindemann 2026-10-08 19:34:06 +02:00
commit 256f294b8b
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -1,4 +1,5 @@
# -- PYTHONPATH
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))
@ -14,4 +15,3 @@ py-tools.clean:
py-path:
@echo "PYTHONPATH=$(PYTHONPATH)"
@#echo "MYPYPATH=$(MYPYPATH)"