Bring the google and github versions of tools/build_defs/pkg/BUILD into better
alignment. The diff is now very minimal, so it should be easier to correctly
copy changes introduced in one over to the other.

RELNOTES: None
PiperOrigin-RevId: 246165371
diff --git a/tools/build_defs/pkg/BUILD b/tools/build_defs/pkg/BUILD
index e9913c6..f1e3ba8 100644
--- a/tools/build_defs/pkg/BUILD
+++ b/tools/build_defs/pkg/BUILD
@@ -32,6 +32,7 @@
         "testenv.py",
     ],
     data = [":archive_testdata"],
+    python_version = "PY2",
     srcs_version = "PY2AND3",
     tags = [
         # archive.py requires xzcat, which is not available by default on Mac
@@ -52,6 +53,7 @@
 py_binary(
     name = "build_tar",
     srcs = ["build_tar.py"],
+    python_version = "PY2",
     srcs_version = "PY2AND3",
     visibility = ["//visibility:public"],
     deps = [
@@ -63,6 +65,7 @@
 py_binary(
     name = "make_deb",
     srcs = ["make_deb.py"],
+    python_version = "PY2",
     srcs_version = "PY2AND3",
     visibility = ["//visibility:public"],
     deps = [
@@ -75,6 +78,7 @@
 py_binary(
     name = "make_rpm",
     srcs = ["make_rpm.py"],
+    python_version = "PY2",
     srcs_version = "PY2AND3",
     visibility = ["//visibility:public"],
     deps = [
@@ -95,6 +99,7 @@
 py_test(
     name = "make_rpm_test",
     srcs = ["make_rpm_test.py"],
+    python_version = "PY2",
     srcs_version = "PY2AND3",
     # rpmbuild is not available in windows
     tags = [