906a9fb989
host-python-flit-core is the only package that overrides _BASE_INSTALL_CMD. Since we're going to remove that variable in a follow-up patch, we no longer will be able to do that. Since host-python-flit-core is really a special case, it makes sense to define HOST_PYTHON_FLIT_CORE_INSTALL_CMDS in its entirety. While we're at it, also instantiate HOST_PKG_PYTHON_PEP517_BOOTSTRAP_INSTALL_OPTS directly there. This variable is not used anywhere else, and it's a bit confusing to have it in pkg-python.mk - it looks like a mistake. Signed-off-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
25 lines
984 B
Makefile
25 lines
984 B
Makefile
################################################################################
|
|
#
|
|
# python-flit-core
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_FLIT_CORE_VERSION = 3.9.0
|
|
PYTHON_FLIT_CORE_SOURCE = flit_core-$(PYTHON_FLIT_CORE_VERSION).tar.gz
|
|
PYTHON_FLIT_CORE_SITE = https://files.pythonhosted.org/packages/c4/e6/c1ac50fe3eebb38a155155711e6e864e254ce4b6e17fe2429b4c4d5b9e80
|
|
PYTHON_FLIT_CORE_LICENSE = BSD-3-Clause
|
|
PYTHON_FLIT_CORE_LICENSE_FILES = LICENSE
|
|
PYTHON_FLIT_CORE_SETUP_TYPE = flit-bootstrap
|
|
|
|
# Use flit built in bootstrap_install for installing host-python-flit-core.
|
|
# This is due to host-python-installer depending on host-python-flit-core.
|
|
define HOST_PYTHON_FLIT_CORE_INSTALL_CMDS
|
|
cd $($(PKG)_BUILDDIR)/; \
|
|
$(HOST_PKG_PYTHON_FLIT_BOOTSTRAP_ENV) \
|
|
$(HOST_DIR)/bin/python3 \
|
|
-m bootstrap_install dist/* \
|
|
--installdir=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
|
endef
|
|
|
|
$(eval $(host-python-package))
|