comparison setup.py @ 1937:14a33c2b1b2a

core (installation): minor comment in setup.py
author Goffi <goffi@goffi.org>
date Sun, 17 Apr 2016 18:07:55 +0200
parents 1128feb54180
children e1d482386395
comparison
equal deleted inserted replaced
1936:6881fc145d59 1937:14a33c2b1b2a
255 if apt_path: 255 if apt_path:
256 # we have apt, we'll try to use it 256 # we have apt, we'll try to use it
257 for module_name in modules_toinstall: 257 for module_name in modules_toinstall:
258 package_name = package[module_name] 258 package_name = package[module_name]
259 sys.stdout.write("Installing %s\n" % package_name) 259 sys.stdout.write("Installing %s\n" % package_name)
260 # TODO: use sudo to get root rights
260 success = subprocess.call('%s -qy install %s' % (apt_path, package_name), shell=True) == 0 261 success = subprocess.call('%s -qy install %s' % (apt_path, package_name), shell=True) == 0
261 if not success: 262 if not success:
262 not_installed.add(module_name) 263 not_installed.add(module_name)
263 else: 264 else:
264 not_installed = set(modules_toinstall) 265 not_installed = set(modules_toinstall)