From c89936d613f596ba4f9be6bf51f74a583acf537c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Fri, 18 Sep 2020 01:00:00 +0000 Subject: [PATCH] build: get rid of python2 entirely --- build | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/build b/build index 5e4cf3a..eb9b9d0 100755 --- a/build +++ b/build @@ -34,7 +34,6 @@ class _Component: apt_build_deps=None, submodules=None, submodules_shallow=None, - python2_pkgs=None, python3_pkgs=None, ruby_pkgs=None, ): @@ -45,7 +44,6 @@ class _Component: self.apt_build_deps = apt_build_deps or set() self.submodules = submodules or set() self.submodules_shallow = submodules_shallow or set() - self.python2_pkgs = python2_pkgs or set() self.python3_pkgs = python3_pkgs or set() self.ruby_pkgs = ruby_pkgs or set() @@ -281,7 +279,7 @@ so looping over all of them would waste time. 'libncurses5-dev', 'libtool-bin', 'make', - 'python-dev', + 'python3-dev', 'texinfo', }, submodules_shallow={'crosstool-ng'}, @@ -515,7 +513,6 @@ Which components to build. Default: qemu-buildroot apt_build_deps = set() submodules = set() submodules_shallow = set() - python2_pkgs = set() python3_pkgs = { 'pexpect==4.6.0', } @@ -525,7 +522,6 @@ Which components to build. Default: qemu-buildroot apt_build_deps.update(component.apt_build_deps) submodules.update(component.submodules) submodules_shallow.update(component.submodules_shallow) - python2_pkgs.update(component.python2_pkgs) python3_pkgs.update(component.python3_pkgs) python3_pkgs.update(component.python3_pkgs) ruby_pkgs.update(component.ruby_pkgs) @@ -571,11 +567,6 @@ Which components to build. Default: qemu-buildroot ['apt-get', 'build-dep'] + y + [LF] + self.sh.add_newlines(sorted(apt_build_deps)) ) - if python2_pkgs: - self.sh.run_cmd( - ['python', '-m', 'pip', 'install', '--user', LF] + - self.sh.add_newlines(sorted(python2_pkgs)) - ) if python3_pkgs: # Not with pip executable directly: # https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main/51846054#51846054