]> git.tnoah.ca Git - lora-radio.git/commitdiff
Auto install needed packages, and bypass external management error
authorjacob.eva <x00010@disroot.org>
Thu, 1 Aug 2024 17:04:39 +0000 (18:04 +0100)
committerjacob.eva <x00010@disroot.org>
Thu, 1 Aug 2024 17:04:39 +0000 (18:04 +0100)
Makefile

index d80272404ef7374cd5fd3d2022fc90363700a486..751d45dab619221e844dfbf9bbc80e0af622845d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ prep-esp32:
        arduino-cli lib install "Adafruit SSD1306"
        arduino-cli lib install "XPowersLib"
        arduino-cli lib install "Crypto"
+       pip install pyserial rns --upgrade --user --break-system-packages # This looks scary, but it's actually just telling pip to install packages as a user instead of trying to install them systemwide, which bypasses the "externally managed environment" error.
 
 prep-samd:
        arduino-cli core update-index --config-file arduino-cli.yaml
@@ -40,7 +41,8 @@ prep-nrf:
        arduino-cli lib install "Crypto"
        arduino-cli lib install "Adafruit GFX Library"
        arduino-cli lib install "GxEPD2"
-       pip install adafruit-nrfutil --upgrade
+       pip install pyserial rns --upgrade --user --break-system-packages
+       pip install adafruit-nrfutil --upgrade --user --break-system-packages # This looks scary, but it's actually just telling pip to install packages as a user instead of trying to install them systemwide, which bypasses the "externally managed environment" error.
 
 console-site:
        make -C Console clean site