From 4ce4965f5af02c7e139325def840b4138223f76f Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 24 Oct 2019 22:51:28 +0100 Subject: [PATCH] config: use Python3 package to set PKG_PYTHON_VERSION --- config/functions | 2 +- config/options | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/functions b/config/functions index 66a1aace73..cbd44b4dd4 100644 --- a/config/functions +++ b/config/functions @@ -494,7 +494,7 @@ reset_pkg_vars() { PKG_LICENSE="unknown" PKG_TOOLCHAIN="auto" PKG_IS_ADDON="no" - PKG_PYTHON_VERSION="python2.7" + PKG_PYTHON_VERSION="${DEFAULT_PYTHON_VERSION}" } set_debug_depends() { diff --git a/config/options b/config/options index 2bebb8d4cc..63239b6151 100644 --- a/config/options +++ b/config/options @@ -106,5 +106,9 @@ check_config # If the package caches are unset, then populate them init_package_cache +if [ -z "${DEFAULT_PYTHON_VERSION+set}" ]; then + export DEFAULT_PYTHON_VERSION="$(get_pkg_variable Python3 PKG_PYTHON_VERSION)" +fi + # set package metadata source_package "${1}"