File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def _get_installed_pip_packages():
121
121
env .Execute (
122
122
env .VerboseAction (
123
123
(
124
- '"$PYTHONEXE" -m pip install -U '
124
+ '"$PYTHONEXE" -m pip install -U -q -q -q '
125
125
+ " " .join (
126
126
[
127
127
'"%s%s"' % (p , deps [p ])
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def _get_installed_standard_pip_packages():
106
106
env .Execute (
107
107
env .VerboseAction (
108
108
(
109
- '"$PYTHONEXE" -m pip install -U '
109
+ '"$PYTHONEXE" -m pip install -U -q -q -q '
110
110
+ " " .join (
111
111
[
112
112
'"%s%s"' % (p , deps [p ])
@@ -1559,7 +1559,7 @@ def _get_installed_pip_packages(python_exe_path):
1559
1559
env .Execute (
1560
1560
env .VerboseAction (
1561
1561
(
1562
- '"%s" -m pip install -U ' % python_exe_path
1562
+ '"%s" -m pip install -U -q -q -q ' % python_exe_path
1563
1563
+ " " .join (['"%s%s"' % (p , deps [p ]) for p in packages_to_install ])
1564
1564
),
1565
1565
"Installing ESP-IDF's Python dependencies" ,
@@ -1569,7 +1569,7 @@ def _get_installed_pip_packages(python_exe_path):
1569
1569
if IS_WINDOWS and "windows-curses" not in installed_packages :
1570
1570
env .Execute (
1571
1571
env .VerboseAction (
1572
- '"%s" -m pip install windows-curses' % python_exe_path ,
1572
+ '"%s" -m pip install -q -q -q windows-curses' % python_exe_path ,
1573
1573
"Installing windows-curses package" ,
1574
1574
)
1575
1575
)
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import os
16
+ import contextlib
16
17
import requests
17
18
import json
18
19
import subprocess
@@ -68,7 +69,14 @@ def install_tool(TOOL, retry_count=0):
68
69
json_flag = bool (os .path .exists (TOOLS_JSON_PATH ))
69
70
pio_flag = bool (os .path .exists (TOOLS_PIO_PATH ))
70
71
if tl_flag and json_flag :
71
- rc = subprocess .run (IDF_TOOLS_CMD ).returncode
72
+ with open (os .devnull , 'w' ) as devnull , \
73
+ contextlib .redirect_stdout (devnull ), \
74
+ contextlib .redirect_stderr (devnull ):
75
+ rc = subprocess .run (
76
+ IDF_TOOLS_CMD ,
77
+ stdout = subprocess .DEVNULL ,
78
+ stderr = subprocess .DEVNULL
79
+ ).returncode
72
80
if rc != 0 :
73
81
sys .stderr .write ("Error: Couldn't execute 'idf_tools.py install'\n " )
74
82
else :
You can’t perform that action at this time.
0 commit comments