Skip to content

Commit 2f552c3

Browse files
damienmgmeteorcloudy
authored andcommitted
Mark pkg_tar dependencies as Python 3 compatible
This should allow to use pkg_tar from project that use python 3 (e.g. TensorFlow). -- MOS_MIGRATED_REVID=139561406
1 parent ae16e76 commit 2f552c3

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • third_party/py/gflags
  • tools/build_defs/pkg

third_party/py/gflags/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ py_library(
1212
"__init__.py",
1313
"gflags_validators.py",
1414
],
15+
srcs_version = "PY2AND3",
1516
visibility = ["//visibility:public"],
1617
)

tools/build_defs/pkg/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ exports_files(
1515
py_library(
1616
name = "archive",
1717
srcs = ["archive.py"],
18+
srcs_version = "PY2AND3",
1819
visibility = [
1920
"//tools/build_defs/docker:__subpackages__",
2021
],
@@ -32,18 +33,21 @@ py_test(
3233
"testenv.py",
3334
],
3435
data = [":archive_testdata"],
36+
srcs_version = "PY2AND3",
3537
deps = [":archive"],
3638
)
3739

3840
py_test(
3941
name = "path_test",
4042
srcs = ["path_test.py"],
4143
data = ["path.bzl"],
44+
srcs_version = "PY2AND3",
4245
)
4346

4447
py_binary(
4548
name = "build_tar",
4649
srcs = ["build_tar.py"],
50+
srcs_version = "PY2AND3",
4751
visibility = ["//visibility:public"],
4852
deps = [
4953
":archive",
@@ -54,6 +58,7 @@ py_binary(
5458
py_binary(
5559
name = "make_deb",
5660
srcs = ["make_deb.py"],
61+
srcs_version = "PY2AND3",
5762
visibility = ["//visibility:public"],
5863
deps = [
5964
":archive",

0 commit comments

Comments
 (0)