]> source.dussan.org Git - jgit.git/commitdiff
Migrate to python 3 59/1196659/2
authorDaniele Sassoli <danielesassoli@gmail.com>
Mon, 24 Jun 2024 08:16:57 +0000 (09:16 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 27 Jun 2024 23:10:17 +0000 (01:10 +0200)
Given that on most systems Python is still linked to the Python 2.7,
switch explicitly to using Python 3.

Python 2.7 was discontinued on January 1, 2020: [1].

Moreover, there is PEP recommending to use python3 in the shebang: [2].

[1] https://www.python.org/doc/sunset-python-2
[2] https://www.python.org/dev/peps/pep-0394

Change-Id: Idd3ed567b0384c6ff0a6121ad736f8af4c0f85e0

.bazelrc
tools/workspace_status.py

index 7c71c4a9d089864df263690df52085a49b2c2b88..375beeca4c40af24b7ee50d9b7a08677038b4907 100644 (file)
--- a/.bazelrc
+++ b/.bazelrc
@@ -2,7 +2,7 @@
 # https://issues.gerritcodereview.com/issues/303819949
 common --noenable_bzlmod
 
-build --workspace_status_command="python ./tools/workspace_status.py"
+build --workspace_status_command="python3 ./tools/workspace_status.py"
 build --repository_cache=~/.gerritcodereview/bazel-cache/repository
 build --incompatible_strict_action_env
 build --action_env=PATH
index ca9e0a98c9019a3be47b3c4eccd66fa9c3b6507a..1186a4a77a6e1609c0113a2831e5624a264d270f 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (C) 2020, David Ostrovsky <david@ostrovsky.org> and others
 #
 # This program and the accompanying materials are made available under the