From dea37ab19582ac43ea1934c2aec928ef346ea362 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 12 Nov 2024 20:34:54 -0500 Subject: [PATCH] Update install-debian.sh apt packages: python-dev -> python-dev-is-python3 libusb-1.0 -> libusb-1.0.0 python virtual environment: python2 -> python3 --- scripts/install-debian.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install-debian.sh b/scripts/install-debian.sh index 9c2cd3b49136..f27550ae9051 100755 --- a/scripts/install-debian.sh +++ b/scripts/install-debian.sh @@ -11,7 +11,7 @@ KLIPPER_GROUP=$KLIPPER_USER install_packages() { # Packages for python cffi - PKGLIST="virtualenv python-dev libffi-dev build-essential" + PKGLIST="virtualenv python-dev-is-python3 libffi-dev build-essential" # kconfig requirements PKGLIST="${PKGLIST} libncurses-dev" # hub-ctrl @@ -20,7 +20,7 @@ install_packages() PKGLIST="${PKGLIST} avrdude gcc-avr binutils-avr avr-libc" # ARM chip installation and building PKGLIST="${PKGLIST} stm32flash libnewlib-arm-none-eabi" - PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0 pkg-config" + PKGLIST="${PKGLIST} gcc-arm-none-eabi binutils-arm-none-eabi libusb-1.0.0 pkg-config" # Update system package info report_status "Running apt-get update..." @@ -37,7 +37,7 @@ create_virtualenv() report_status "Updating python virtual environment..." # Create virtualenv if it doesn't already exist - [ ! -d ${PYTHONDIR} ] && virtualenv -p python2 ${PYTHONDIR} + [ ! -d ${PYTHONDIR} ] && virtualenv -p python3 ${PYTHONDIR} # Install/update dependencies ${PYTHONDIR}/bin/pip install -r ${SRCDIR}/scripts/klippy-requirements.txt