mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
Ubuntu: Fix PY_SITE_PACKAGES_PATH
PY_SITE_PACKAGES_PATH is set to the first element site.getsitepackages(), which (correctly, but in this case undesirably) is below /usr/local. Use the first path which is not. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ee012a8d35
commit
921a929cd3
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ endif
|
|||
ifeq ($(DEVELOPMENT),true)
|
||||
PY_SITE_PACKAGES_PATH := $(PREFIX)/python$(PYTHON_VERSION)/site-packages
|
||||
else
|
||||
PY_SITE_PACKAGES_PATH := $(shell $(PYTHON) -c "import site; print(site.getsitepackages()[0])")
|
||||
PY_SITE_PACKAGES_PATH := $(shell $(PYTHON) -c "import site; print([d for d in site.getsitepackages() if d.find('/local/') == -1][0])")
|
||||
endif
|
||||
|
||||
ifndef PY_PREREQ_BUILD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue