Run generate_changelog.py script with python3 instead of python2.7.
Related to #11202.
PiperOrigin-RevId: 369427107
diff --git a/scripts/packages/debian/BUILD b/scripts/packages/debian/BUILD
index 7577d04..10689e5 100644
--- a/scripts/packages/debian/BUILD
+++ b/scripts/packages/debian/BUILD
@@ -122,7 +122,7 @@
"//:bazel-srcs", # Force a rebuild on source change
],
outs = ["changelog"],
- cmd = "python2.7 $(location generate_changelog.py) bazel-out/volatile-status.txt $(location changelog)",
+ cmd = "python3 $(location generate_changelog.py) bazel-out/volatile-status.txt $(location changelog)",
stamp = 1,
)
diff --git a/scripts/packages/debian/generate_changelog.py b/scripts/packages/debian/generate_changelog.py
index 31f6964..222abc7 100644
--- a/scripts/packages/debian/generate_changelog.py
+++ b/scripts/packages/debian/generate_changelog.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# pylint: disable=g-bad-file-header
# Copyright 2015 The Bazel Authors. All rights reserved.
#