sforkowany z mirror/meshtastic-firmware
Install littlefs-python during pio run (#1220)
Install only if it is missing from the ENV. Caveat: this python module is essentially lib binding and needs Cython and a working compiler as well. this MAY or MAY NOT work.raytac-diy
rodzic
54f062e94d
commit
e7e001c159
|
@ -8,6 +8,10 @@ from readprops import readProps
|
||||||
|
|
||||||
Import("env")
|
Import("env")
|
||||||
env.Replace( MKSPIFFSTOOL=env.get("PROJECT_DIR") + '/bin/mklittlefs.py' )
|
env.Replace( MKSPIFFSTOOL=env.get("PROJECT_DIR") + '/bin/mklittlefs.py' )
|
||||||
|
try:
|
||||||
|
import littlefs
|
||||||
|
except ImportError:
|
||||||
|
env.Execute("$PYTHONEXE -m pip install --user littlefs-python")
|
||||||
|
|
||||||
Import("projenv")
|
Import("projenv")
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue