1
1
load("//tools/python:private/defs.bzl", "py_library", "py_binary")
2
+ load("//tools/python:private/version.bzl", "PY_BINARY_VERSION")
2
3
3
4
package(default_visibility = ["//visibility:public"])
4
5
@@ -245,24 +246,21 @@ alias(
245
246
py_binary(
246
247
name = "instrumentation_test_check",
247
248
srcs = ["instrumentation_test_check.py"],
248
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
249
- python_version = "PY2",
249
+ python_version = PY_BINARY_VERSION,
250
250
deps = ["//third_party/py/abseil"],
251
251
)
252
252
253
253
py_binary(
254
254
name = "build_incremental_dexmanifest",
255
255
srcs = [":build_incremental_dexmanifest.py"],
256
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
257
- python_version = "PY2",
256
+ python_version = PY_BINARY_VERSION,
258
257
deps = [],
259
258
)
260
259
261
260
py_binary(
262
261
name = "build_split_manifest",
263
262
srcs = ["build_split_manifest.py"],
264
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
265
- python_version = "PY2",
263
+ python_version = PY_BINARY_VERSION,
266
264
deps = [
267
265
"//third_party/py/abseil",
268
266
],
@@ -271,8 +269,7 @@ py_binary(
271
269
py_binary(
272
270
name = "incremental_install",
273
271
srcs = ["incremental_install.py"],
274
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
275
- python_version = "PY2",
272
+ python_version = PY_BINARY_VERSION,
276
273
deps = [
277
274
"//third_party/py/concurrent:futures",
278
275
"//third_party/py/abseil",
@@ -282,8 +279,7 @@ py_binary(
282
279
py_binary(
283
280
name = "strip_resources",
284
281
srcs = ["strip_resources.py"],
285
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
286
- python_version = "PY2",
282
+ python_version = PY_BINARY_VERSION,
287
283
deps = [
288
284
"//third_party/py/abseil",
289
285
],
@@ -294,8 +290,7 @@ py_binary(
294
290
srcs = [
295
291
"aar_native_libs_zip_creator.py",
296
292
],
297
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
298
- python_version = "PY2",
293
+ python_version = PY_BINARY_VERSION,
299
294
deps = [
300
295
":junction_lib",
301
296
"//third_party/py/abseil",
@@ -305,8 +300,7 @@ py_binary(
305
300
py_binary(
306
301
name = "stubify_manifest",
307
302
srcs = ["stubify_manifest.py"],
308
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
309
- python_version = "PY2",
303
+ python_version = PY_BINARY_VERSION,
310
304
deps = [
311
305
"//third_party/py/abseil",
312
306
],
@@ -315,8 +309,7 @@ py_binary(
315
309
py_binary(
316
310
name = "aar_embedded_jars_extractor",
317
311
srcs = ["aar_embedded_jars_extractor.py"],
318
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
319
- python_version = "PY2",
312
+ python_version = PY_BINARY_VERSION,
320
313
deps = [
321
314
":junction_lib",
322
315
"//third_party/py/abseil",
@@ -326,8 +319,7 @@ py_binary(
326
319
py_binary(
327
320
name = "aar_resources_extractor",
328
321
srcs = ["aar_resources_extractor.py"],
329
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
330
- python_version = "PY2",
322
+ python_version = PY_BINARY_VERSION,
331
323
deps = [
332
324
":junction_lib",
333
325
"//third_party/py/abseil",
@@ -337,8 +329,7 @@ py_binary(
337
329
py_binary(
338
330
name = "resource_extractor",
339
331
srcs = ["resource_extractor.py"],
340
- # TODO(bazel-team): remove python_version = "PY2" while fixing https://github.com/bazelbuild/bazel/issues/10127.
341
- python_version = "PY2",
332
+ python_version = PY_BINARY_VERSION,
342
333
)
343
334
344
335
py_library(
0 commit comments