From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 71A023858CDB; Tue, 24 Oct 2023 07:46:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71A023858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698133592; bh=s5HgisUieaHdVynsoxr67wNSfMeK3aiW17P2X2Nt0bQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GXyrfTURPaRmbWRiBeG3pGvYixABwFjMDAFrstSyRAwvAMUe/1hyE+McZJj2LCtZQ R0qxfoi+Y5YEdncheRQEEHD0QKXfQj/xRNbVgtNckq4dKbdSbU333lAufwjkcyftj2 tKilak2H3oauOEO+ZbLIbgRGEBdRaDS7na/q/wdU= From: "piannetta at kalrayinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/109668] 'python' vs. 'python3' Date: Tue, 24 Oct 2023 07:46:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: internal-improvement X-Bugzilla-Severity: normal X-Bugzilla-Who: piannetta at kalrayinc dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109668 Paul Iannetta changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |piannetta at kalrayinc dot= com --- Comment #2 from Paul Iannetta --- My first guess was that unless GCC made clear that it will requires Python3= , I thought that all the Python scripts should be kept compatible with both Pyt= hon2 and Python3. However, looking at GCC sources, most python files already require python3 = in their shebang (#!/usr/bin/env python3), which would suggest that we can saf= ely drop python2 and use python3 everywhere, and rewrite the few #!/usr/bin/pyt= hon3 to #!/usr/bin/env python3 % find gcc/ -iname "*.py" -exec head -n 1 '{}' + | grep "python$" -C 1 =3D=3D> ./libstdc++-v3/scripts/make_graph.py <=3D=3D #!/usr/bin/python =3D=3D> ./libffi/generate-darwin-source-and-headers.py <=3D=3D #!/usr/bin/env python =3D=3D> ./contrib/jit-coverage-report.py <=3D=3D #! /usr/bin/python =3D=3D> ./contrib/dg-extract-results.py <=3D=3D #!/usr/bin/python =3D=3D> ./contrib/unused_functions.py <=3D=3D #!/usr/bin/env python=