%:
# Check if we have the CMP tool installed
cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
+ # Ensure that python3 is installed. This check can be removed after python is used in more places.
+ if ! python3 --version 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
# Check if the submodules are dirty, and display a warning if they are
ifndef SKIP_GIT
if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 1 --init lib/chibios; fi
MSG_FILE_TOO_SMALL = The firmware is too small! $(CURRENT_SIZE)/$(MAX_SIZE)\n
MSG_FILE_JUST_RIGHT = The firmware size is fine - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n
MSG_FILE_NEAR_LIMIT = The firmware size is approaching the maximum - $(CURRENT_SIZE)/$(MAX_SIZE) ($(FREE_SIZE) bytes free)\n
+MSG_PYTHON_MISSING = $(WARN_COLOR)WARNING:$(NO_COLOR)\n \
+ Python 3 is not installed. It will be required by a future version\n\
+ of qmk_firmware.\n\n\
+ Please run $(BOLD)util/qmk_install.sh$(NO_COLOR) to install all the dependencies QMK requires.\n\n
arm-none-eabi-gcc \
arm-none-eabi-binutils \
arm-none-eabi-newlib \
- diffutils
+ diffutils \
+ python3
kernel-headers \
make \
perl \
+ python3 \
unzip \
wget \
zip
gcc-avr \
git \
libnewlib-arm-none-eabi \
+ python3 \
unzip \
wget \
zip
diffutils \
gcc \
git \
+ python \
unzip \
wget \
zip
app-arch/zip \
app-mobilephone/dfu-util \
dev-embedded/avrdude \
+ dev-lang/python:3.5 \
net-misc/wget \
sys-devel/gcc \
sys-devel/crossdev
app-arch/zip \
app-mobilephone/dfu-util \
dev-embedded/avrdude \
+ dev-lang/python \
net-misc/wget \
sys-devel/gcc \
sys-devel/crossdev
dfu-tool \
dfu-programmer \
gcc \
+ python3 \
unzip \
wget \
zip
dfu-util \
arm-binutils \
arm-gcc \
- newlib
+ newlib \
+ python3
echo "Done!"
else
echo "Quitting..."
brew tap osx-cross/avr
brew tap PX4/homebrew-px4
brew update
-brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util
+brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude dfu-util python3
brew link --force avr-gcc@7
installflip=false
echo "Installing dependencies needed for the installation (quazip)"
-pacman --needed -S msys/unzip msys/p7zip base-devel msys/git mingw-w64-x86_64-toolchain
+pacman --needed -S base-devel mingw-w64-x86_64-toolchain msys/git msys/p7zip msys/python3 msys/unzip
source "$dir/win_shared_install.sh"