jw-pkg/make/py-path.mk
Jan Lindemann 8a41298b76
py-path.mk: Add file

Aside from PYTHONPATH, ldlibpath.mk runs jw-pkg.py for determining other paths, too, which is often unneeded and can impact performance. Split the PYTHONPATH detection into a dedicated py-path.mk, and include it from ldlibpath.mk, so it can be used instead where needed.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-17 19:08:06 +02:00

6 lines
239 B
Makefile

# -- PYTHONPATH
PYTHONPATH_ENV := $(PYTHONPATH)
ifeq ($(origin JW_PKG_PYTHON_PATH),undefined)
JW_PKG_PYTHON_PATH := $(call proj_query, pythonpath $(PROJECT))
endif
export PYTHONPATH := $(JW_PKG_PYTHON_PATH)