|
@@ -154,6 +154,9 @@ HOST_PKG_PYTHON_PEP517_INSTALL_OPTS = \
|
|
|
--scripts=$(HOST_DIR)/bin \
|
|
|
--data=$(HOST_DIR)
|
|
|
|
|
|
+HOST_PKG_PYTHON_PEP517_BOOTSTRAP_INSTALL_OPTS = \
|
|
|
+ --installdir=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
|
|
+
|
|
|
################################################################################
|
|
|
# inner-python-package -- defines how the configuration, compilation
|
|
|
# and installation of a Python package should be done, implements a
|
|
@@ -214,6 +217,14 @@ $(2)_BASE_ENV = $$(HOST_PKG_PYTHON_PEP517_ENV)
|
|
|
$(2)_BASE_BUILD_CMD = -m build -n -w
|
|
|
$(2)_BASE_INSTALL_CMD = $(TOPDIR)/support/scripts/pyinstaller.py dist/* $$(HOST_PKG_PYTHON_PEP517_INSTALL_OPTS)
|
|
|
endif
|
|
|
+else ifeq ($$($(2)_SETUP_TYPE),flit-bootstrap)
|
|
|
+ifeq ($(4),target)
|
|
|
+$$(error flit-bootstrap setup type only supported for host packages)
|
|
|
+else
|
|
|
+$(2)_BASE_ENV = $$(HOST_PKG_PYTHON_PEP517_ENV)
|
|
|
+$(2)_BASE_BUILD_CMD = -m flit_core.wheel
|
|
|
+$(2)_BASE_INSTALL_CMD ?= $(TOPDIR)/support/scripts/pyinstaller.py dist/* $$(HOST_PKG_PYTHON_PEP517_INSTALL_OPTS)
|
|
|
+endif
|
|
|
else
|
|
|
$$(error "Invalid $(2)_SETUP_TYPE. Valid options are 'distutils', 'setuptools', 'pep517' or 'flit'.")
|
|
|
endif
|
|
@@ -239,6 +250,10 @@ $(2)_DEPENDENCIES += host-python-pypa-build host-python-installer
|
|
|
ifeq ($$($(2)_SETUP_TYPE),flit)
|
|
|
$(2)_DEPENDENCIES += host-python-flit-core
|
|
|
endif
|
|
|
+else ifeq ($$($(2)_SETUP_TYPE),flit-bootstrap)
|
|
|
+ifeq ($$(filter host-python-flit-core host-python-installer,$(1)),)
|
|
|
+$(2)_DEPENDENCIES += host-python-flit-core host-python-installer
|
|
|
+endif
|
|
|
endif # SETUP_TYPE
|
|
|
|
|
|
# Python interpreter to use for building the package.
|