Skip to content

Commit

Permalink
Chore: Update a few Makefiles re. Python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed May 24, 2023
1 parent c893788 commit 805a9e3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions node-esp32-generic/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$(eval venvpath := .venv3)
$(eval venvpath := .venv)
$(eval python := $(venvpath)/bin/python)
$(eval pip := $(venvpath)/bin/pip)
$(eval pio := $(venvpath)/bin/pio)
Expand All @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
2 changes: 1 addition & 1 deletion node-esp8266-generic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
2 changes: 1 addition & 1 deletion node-wifi-mqtt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
2 changes: 1 addition & 1 deletion scale-adjust/ADS1231/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
2 changes: 1 addition & 1 deletion scale-adjust/HX711/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio

0 comments on commit 805a9e3

Please sign in to comment.