@@ -90,8 +90,8 @@ def main():
90
90
if not ("gcc version 9." in gcc_ver .stderr or "gcc version 10." in gcc_ver .stderr ):
91
91
if (not utils .is_command_installed ('gcc-10' ) or
92
92
not utils .is_command_installed ('g++-10' )):
93
- utils .run_command (['apt' , 'install' , '-y' , 'gcc-10' , 'g++-10' ],
94
- as_root = True )
93
+ utils .run_command (['apt' , 'install' , '-y' , 'gcc-10' ,
94
+ 'g++-10' ], as_root = True )
95
95
utils .run_command (['update-alternatives' , '--install' , '/usr/bin/gcc' ,
96
96
'gcc' , '/usr/bin/gcc-10' , '10' ], as_root = True )
97
97
utils .run_command (['update-alternatives' , '--install' , '/usr/bin/g++' ,
@@ -100,7 +100,12 @@ def main():
100
100
'/usr/bin/gcc-10' ], as_root = True )
101
101
utils .run_command (['update-alternatives' , '--set' , 'g++' ,
102
102
'/usr/bin/g++-10' ], as_root = True )
103
-
103
+
104
+ # On Linux, the python3-venv package is required.
105
+ if utils .is_linux_os ():
106
+ if not utils .glob_exists ("/usr/share/doc/python3.*-venv" ):
107
+ utils .run_command (['apt' , 'install' , '-y' , 'python3-venv' ], as_root = True )
108
+
104
109
# Install required python dependencies.
105
110
# On Catalina, python2 in installed as default python.
106
111
# Example command:
0 commit comments