bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
216 stars 174 forks source link

Require python3 for executable scripts #723

Closed tetromino closed 1 year ago

tetromino commented 1 year ago

Otherwise, on old Linux systems where python == python2, we try to use python2 and fail: https://buildkite.com/bazel/bazel-skylib/builds/2768#0189d6bc-463d-4c32-ad02-46ed3c01da5d

tetromino commented 1 year ago

I misdiagnosed the problem: the issue is that python 3.5 does not support the "foo: type" syntax for variables.

To fix, I think we'd need to depend on a recent rules_python.