|
@@ -27,7 +27,7 @@ PKG_PYTHON_DISTUTILS_ENV = \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
LDSHARED="$(TARGET_CROSS)gcc -shared" \
|
|
LDSHARED="$(TARGET_CROSS)gcc -shared" \
|
|
- PYTHONPATH="$(PYTHON_PATH)" \
|
|
|
|
|
|
+ PYTHONPATH="$(if $(BR2_PACKAGE_PYTHON3),$(PYTHON3_PATH),$(PYTHON_PATH))" \
|
|
_python_sysroot=$(STAGING_DIR) \
|
|
_python_sysroot=$(STAGING_DIR) \
|
|
_python_prefix=/usr \
|
|
_python_prefix=/usr \
|
|
_python_exec_prefix=/usr
|
|
_python_exec_prefix=/usr
|
|
@@ -48,7 +48,7 @@ HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPT = \
|
|
# Target setuptools-based packages
|
|
# Target setuptools-based packages
|
|
PKG_PYTHON_SETUPTOOLS_ENV = \
|
|
PKG_PYTHON_SETUPTOOLS_ENV = \
|
|
PATH="$(TARGET_PATH)" \
|
|
PATH="$(TARGET_PATH)" \
|
|
- PYTHONPATH="$(PYTHON_PATH)" \
|
|
|
|
|
|
+ PYTHONPATH="$(if $(BR2_PACKAGE_PYTHON3),$(PYTHON3_PATH),$(PYTHON_PATH))" \
|
|
_python_sysroot=$(STAGING_DIR) \
|
|
_python_sysroot=$(STAGING_DIR) \
|
|
_python_prefix=/usr \
|
|
_python_prefix=/usr \
|
|
_python_exec_prefix=/usr
|
|
_python_exec_prefix=/usr
|
|
@@ -138,16 +138,16 @@ endif
|
|
# depending on the package characteristics, and shouldn't be derived
|
|
# depending on the package characteristics, and shouldn't be derived
|
|
# automatically from the dependencies of the corresponding target
|
|
# automatically from the dependencies of the corresponding target
|
|
# package.
|
|
# package.
|
|
-$(2)_DEPENDENCIES ?= $(filter-out host-python host-python-setuptools host-toolchain $(1),$(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES))))
|
|
|
|
|
|
+$(2)_DEPENDENCIES ?= $(filter-out host-python host-python3 host-python-setuptools host-toolchain $(1),$(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES))))
|
|
|
|
|
|
# Target packages need both the python interpreter on the target (for
|
|
# Target packages need both the python interpreter on the target (for
|
|
# runtime) and the python interpreter on the host (for
|
|
# runtime) and the python interpreter on the host (for
|
|
# compilation). However, host packages only need the python
|
|
# compilation). However, host packages only need the python
|
|
# interpreter on the host.
|
|
# interpreter on the host.
|
|
ifeq ($(4),target)
|
|
ifeq ($(4),target)
|
|
-$(2)_DEPENDENCIES += host-python python
|
|
|
|
|
|
+$(2)_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),host-python3 python3,host-python python)
|
|
else
|
|
else
|
|
-$(2)_DEPENDENCIES += host-python
|
|
|
|
|
|
+$(2)_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)
|
|
endif
|
|
endif
|
|
|
|
|
|
# Setuptools based packages will need host-python-setuptools (both
|
|
# Setuptools based packages will need host-python-setuptools (both
|