mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
py-defs.mk: Add automatic detection of PY_CPYTHON_PREFIX
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ab5fc0c334
commit
386f9304c6
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ PY_ALL_PY = $(PY_SRC_PY)
|
||||||
ifneq ($(PYTHON_VERSION),3)
|
ifneq ($(PYTHON_VERSION),3)
|
||||||
PY_PYC = $(patsubst %.py,%.pyc,$(PY_ALL_PY))
|
PY_PYC = $(patsubst %.py,%.pyc,$(PY_ALL_PY))
|
||||||
else
|
else
|
||||||
PY_PYC = $(patsubst %.py,__pycache__/%.cpython-37.pyc,$(PY_ALL_PY))
|
PY_CPYTHON_PREFIX := $(shell $(PYTHON) -c "import sys; print('cpython-{}{}'.format(sys.version_info[0],sys.version_info[1]))")
|
||||||
|
PY_PYC = $(patsubst %.py,__pycache__/%.$(PY_CPYTHON_PREFIX).pyc,$(PY_ALL_PY))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(PY_INSTALL_DIR),)
|
ifneq ($(PY_INSTALL_DIR),)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue