Skip to content

Commit

Permalink
MSYS2 install: use MinGW python-qmk package (#17302)
Browse files Browse the repository at this point in the history
* MSYS2 install: use MinGW python-qmk package

* Add missing flashers

* Note VC Redist for manual install

* VC Redist no longer needed
  • Loading branch information
fauxpark authored Jul 2, 2022
1 parent 1cffe5b commit 25033d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
10 changes: 2 additions & 8 deletions docs/newbs_getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,15 @@ Alternatively, if you'd like to manually install MSYS2, the following section wi

#### Prerequisites

You will need to install MSYS2, Git and Python. Follow the installation instructions on https://www.msys2.org.

Once MSYS2 is installed, close any open MSYS terminals and open a new MinGW 64-bit terminal.
You will need to install [MSYS2](https://www.msys2.org). Once installed, close any open MSYS terminals (purple icon) and open a new MinGW 64-bit terminal (blue icon) from the Start Menu.

!> **NOTE:** The MinGW 64-bit terminal is *not* the same as the MSYS terminal that opens when installation is completed. Your prompt should say "MINGW64" in purple text, rather than "MSYS". See [this page](https://www.msys2.org/wiki/MSYS2-introduction/#subsystems) for more information on the differences.

Then run the following command:

pacman --needed --noconfirm --disable-download-timeout -S git mingw-w64-x86_64-toolchain mingw-w64-x86_64-python3-pip mingw-w64-x86_64-python-pillow

#### Installation

Install the QMK CLI by running:

python3 -m pip install qmk
pacman --needed --noconfirm --disable-download-timeout -S git mingw-w64-x86_64-python-qmk

</details>

Expand Down
13 changes: 5 additions & 8 deletions util/install/msys2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ _qmk_install_prepare() {
_qmk_install() {
echo "Installing dependencies"

pacman --needed --noconfirm --disable-download-timeout -S pactoys-git
pacman --needed --noconfirm --disable-download-timeout -S pactoys
pacboy sync --needed --noconfirm --disable-download-timeout \
base-devel: toolchain:x clang:x git: unzip: python3-pip:x \
avr-binutils:x avr-gcc:x avr-libc:x arm-none-eabi-binutils:x \
arm-none-eabi-gcc:x arm-none-eabi-newlib:x avrdude:x bootloadhid:x \
dfu-programmer:x dfu-util:x teensy-loader-cli:x hidapi:x \
python-appdirs:x python-colorama:x python-jsonschema:x python-pillow:x python-pygments:x
base-devel: toolchain:x clang:x python-qmk:x hidapi:x \
avr-binutils:x avr-gcc:x avr-libc:x \
arm-none-eabi-binutils:x arm-none-eabi-gcc:x arm-none-eabi-newlib:x \
avrdude:x bootloadhid:x dfu-programmer:x dfu-util:x hid-bootloader-cli:x mdloader:x teensy-loader-cli:x wb32-dfu-updater:x

_qmk_install_drivers

python3 -m pip install -r "$QMK_FIRMWARE_DIR/requirements.txt"
}

_qmk_install_drivers() {
Expand Down

0 comments on commit 25033d5

Please sign in to comment.