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>
This commit is contained in:
parent
3106805c7d
commit
8a41298b76
2 changed files with 7 additions and 6 deletions
|
|
@ -17,9 +17,4 @@ ifeq ($(origin JW_PKG_EXE_PATH),undefined)
|
||||||
endif
|
endif
|
||||||
export PATH := $(JW_PKG_EXE_PATH)
|
export PATH := $(JW_PKG_EXE_PATH)
|
||||||
|
|
||||||
# -- PYTHONPATH
|
include $(JWBDIR)/make/py-path.mk
|
||||||
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)
|
|
||||||
|
|
|
||||||
6
make/py-path.mk
Normal file
6
make/py-path.mk
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
# -- 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)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue