package/pkg-python.mk: fix PEP517 paths
Use /usr target/staging prefix and / host prefix. This allows the Python interpreter to find packages built via the new Flit infrastructure. Fixes: #14721 Signed-off-by: Emile Cormier <emile.cormier.jr@gmail.com> Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
15f76e16b3
commit
5bea8c9521
@ -127,16 +127,16 @@ PKG_PYTHON_PEP517_ENV = \
|
||||
PKG_PYTHON_PEP517_INSTALL_TARGET_OPTS = \
|
||||
--interpreter=/usr/bin/python \
|
||||
--script-kind=posix \
|
||||
--purelib=$(TARGET_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--headers=$(TARGET_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--purelib=$(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--headers=$(TARGET_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--scripts=$(TARGET_DIR)/usr/bin \
|
||||
--data=$(TARGET_DIR)/usr
|
||||
|
||||
PKG_PYTHON_PEP517_INSTALL_STAGING_OPTS = \
|
||||
--interpreter=/usr/bin/python \
|
||||
--script-kind=posix \
|
||||
--purelib=$(STAGING_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--headers=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--purelib=$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--headers=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--scripts=$(STAGING_DIR)/usr/bin \
|
||||
--data=$(STAGING_DIR)/usr
|
||||
|
||||
@ -147,12 +147,12 @@ HOST_PKG_PYTHON_PEP517_ENV = \
|
||||
$(HOST_CONFIGURE_OPTS)
|
||||
|
||||
HOST_PKG_PYTHON_PEP517_INSTALL_OPTS = \
|
||||
--interpreter=/usr/bin/python \
|
||||
--interpreter=/bin/python \
|
||||
--script-kind=posix \
|
||||
--purelib=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages \
|
||||
--headers=$(HOST_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--scripts=$(HOST_DIR)/usr/bin \
|
||||
--data=$(HOST_DIR)/usr
|
||||
--headers=$(HOST_DIR)/include/python$(PYTHON3_VERSION_MAJOR) \
|
||||
--scripts=$(HOST_DIR)/bin \
|
||||
--data=$(HOST_DIR)
|
||||
|
||||
################################################################################
|
||||
# inner-python-package -- defines how the configuration, compilation
|
||||
|
Loading…
Reference in New Issue
Block a user