mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/python-pillow: fix wrong install step
This patch changes PYTHON_PILLOW_INSTALL_TARGET_CMDS to actually install pillow in target directory instead of host. While at it, it also fixes the version for the hash, and uses the more conventional "define ... endef" construct to define variables in python-pillow.mk. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
ac4471d09f
commit
5e3b154243
@@ -54,11 +54,20 @@ else
|
||||
PYTHON_PILLOW_BUILD_OPTS += --disable-zlib
|
||||
endif
|
||||
|
||||
PYTHON_PILLOW_BUILD_CMDS = cd $(PYTHON_PILLOW_BUILDDIR); \
|
||||
define PYTHON_PILLOW_BUILD_CMDS
|
||||
cd $(PYTHON_PILLOW_BUILDDIR); \
|
||||
$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
|
||||
$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
|
||||
$(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS)
|
||||
endef
|
||||
|
||||
PYTHON_PILLOW_INSTALL_TARGET_CMDS = $(PYTHON_PILLOW_BUILD_CMDS) install
|
||||
define PYTHON_PILLOW_INSTALL_TARGET_CMDS
|
||||
cd $(PYTHON_PILLOW_BUILDDIR); \
|
||||
$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
|
||||
$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
|
||||
$(PYTHON_PILLOW_BUILD_OPTS) install \
|
||||
$(PYTHON_PILLOW_BASE_INSTALL_TARGET_OPTS) \
|
||||
$(PYTHON_PILLOW_INSTALL_TARGET_OPTS)
|
||||
endef
|
||||
|
||||
$(eval $(python-package))
|
||||
|
||||
Reference in New Issue
Block a user