config: use Python3 package to set PKG_PYTHON_VERSION

This commit is contained in:
MilhouseVH 2019-10-24 22:51:28 +01:00
parent 97f87d8e9c
commit 4ce4965f5a
2 changed files with 5 additions and 1 deletions

View File

@ -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() {

View File

@ -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}"