Skip to content

Commit c56496e

Browse files
committed
add informative message when collecting deps
1 parent 2fc5a7d commit c56496e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

builder/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def get_lvgl():
199199
'--',
200200
f'lib/lvgl'
201201
]
202+
print('collecting LVGL')
203+
print('this might take a while...')
202204
result, _ = spawn(cmd_, spinner=True)
203205
if result != 0:
204206
sys.exit(result)
@@ -214,7 +216,7 @@ def get_micropython():
214216
'--',
215217
f'lib/micropython'
216218
]
217-
219+
print('collecting MicroPython 1.23.0')
218220
result, _ = spawn(cmd_, spinner=True)
219221
if result != 0:
220222
sys.exit(result)
@@ -230,6 +232,7 @@ def get_pycparser():
230232
f'lib/pycparser'
231233
]
232234

235+
print('collecting pycparser')
233236
result, _ = spawn(cmd_)
234237
if result != 0:
235238
sys.exit(result)

builder/esp32.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def get_espidf():
134134
'lib/esp-idf'
135135
]
136136

137+
print('collecting ESP-IDF v5.2.1')
138+
print('this might take a while...')
137139
result, _ = spawn(cmd, spinner=True)
138140
if result != 0:
139141
sys.exit(result)
@@ -566,22 +568,15 @@ def submodules():
566568
if idf_ver is None or idf_ver != '5.2.1':
567569
idf_path = 'lib/esp-idf'
568570
if not os.path.exists(os.path.join(idf_path, 'export.sh')):
569-
print('collecting ESP-IDF v5.2.1')
570-
print('this might take a bit...')
571-
print()
572571
get_espidf()
573-
print()
574-
575572
cmds = [
576573
[f'export "IDF_PATH={os.path.abspath(idf_path)}"'],
577574
['cd', idf_path],
578575
['./install.sh', 'all']
579576
]
580577

581578
print('setting up ESP-IDF v5.2.1')
582-
print('this might take a bit...')
583-
print()
584-
579+
print('this might take a while...')
585580
env = {
586581
k: v for k, v in os.environ.items() if not k.startswith('IDF')
587582
}

0 commit comments

Comments
 (0)