mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
prepare-host.sh: deps: Noble dropped python3-distutils; fixes #6527
- keep it for older releases
This commit is contained in:
@@ -289,10 +289,17 @@ function adaptative_prepare_host_dependencies() {
|
||||
### Python
|
||||
host_deps_add_extra_python # See python-tools.sh::host_deps_add_extra_python()
|
||||
|
||||
# Python3 -- required for Armbian's Python tooling, and also for more recent u-boot builds. Needs 3.9+; ffi-dev is needed for some Python packages when the wheel is not prebuilt
|
||||
host_dependencies+=("python3-dev" "python3-distutils" "python3-setuptools" "python3-pip" "python3-pyelftools" "libffi-dev")
|
||||
### Python3 -- required for Armbian's Python tooling, and also for more recent u-boot builds. Needs 3.9+; ffi-dev is needed for some Python packages when the wheel is not prebuilt
|
||||
host_dependencies+=("python3-dev" "python3-setuptools" "python3-pip" "python3-pyelftools" "libffi-dev")
|
||||
|
||||
# Python2 -- required for some older u-boot builds
|
||||
# Noble and later releases do not carry "python3-distutils" https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated
|
||||
if [[ "noble" == *"${host_release}"* ]]; then
|
||||
display_alert "python3-distutils not available on host release '${host_release}'" "distutils was deprecated with Python 3.12" "debug"
|
||||
else
|
||||
host_dependencies+=("python3-distutils")
|
||||
fi
|
||||
|
||||
### Python2 -- required for some older u-boot builds
|
||||
# Debian 'sid'/'bookworm' and Ubuntu 'lunar' does not carry python2 anymore; in this case some u-boot's might fail to build.
|
||||
if [[ "sid bookworm trixie lunar mantic noble" == *"${host_release}"* ]]; then
|
||||
display_alert "Python2 not available on host release '${host_release}'" "old(er) u-boot builds might/will fail" "wrn"
|
||||
|
||||
Reference in New Issue
Block a user