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>
6 lines
239 B
Makefile
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)
|