Bug 1210157 - Add Python 3 support to the mozboot Debian bootstrapper r=firefox-build-system-reviewers,mshal

Add support for Python 3 and Python 2.7 to the Debian-based linux distro
bootstrap routines.

Differential Revision: https://phabricator.services.mozilla.com/D39361

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Māris Fogels 2019-08-20 21:19:17 +00:00
parent fef8423731
commit 6cc808b85a

View File

@ -109,8 +109,8 @@ class DebianBootstrapper(NasmInstall, NodeInstall, StyloInstall, ClangStaticAnal
self.which('python3.5')])
if not have_python3:
python3_packages = self.check_output([
'apt-cache', 'pkgnames', 'python3'])
python3_packages = self.check_output(
['apt-cache', 'pkgnames', 'python3'], universal_newlines=True)
python3_packages = python3_packages.splitlines()
if 'python3' in python3_packages: