@@ -90,8 +90,8 @@ def main():
9090 if not ("gcc version 9." in gcc_ver .stderr or "gcc version 10." in gcc_ver .stderr ):
9191 if (not utils .is_command_installed ('gcc-10' ) or
9292 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 )
9595 utils .run_command (['update-alternatives' , '--install' , '/usr/bin/gcc' ,
9696 'gcc' , '/usr/bin/gcc-10' , '10' ], as_root = True )
9797 utils .run_command (['update-alternatives' , '--install' , '/usr/bin/g++' ,
@@ -100,7 +100,12 @@ def main():
100100 '/usr/bin/gcc-10' ], as_root = True )
101101 utils .run_command (['update-alternatives' , '--set' , 'g++' ,
102102 '/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+
104109 # Install required python dependencies.
105110 # On Catalina, python2 in installed as default python.
106111 # Example command:
0 commit comments