diff options
author | 2016-11-18 10:31:50 +0000 | |
---|---|---|
committer | 2016-11-18 10:55:00 +0000 | |
commit | 2f552c30d429e9d653deeaff655342b5a1336374 (patch) | |
tree | 6e67293d269dacd52f9465edbd6f44168226b047 | |
parent | ae16e763ce161af4c34f55e469723accbd0a9f03 (diff) |
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
-rw-r--r-- | third_party/py/gflags/BUILD | 1 | ||||
-rw-r--r-- | tools/build_defs/pkg/BUILD | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/third_party/py/gflags/BUILD b/third_party/py/gflags/BUILD index 261c1cb734..77f2722818 100644 --- a/third_party/py/gflags/BUILD +++ b/third_party/py/gflags/BUILD @@ -12,5 +12,6 @@ py_library( "__init__.py", "gflags_validators.py", ], + srcs_version = "PY2AND3", visibility = ["//visibility:public"], ) diff --git a/tools/build_defs/pkg/BUILD b/tools/build_defs/pkg/BUILD index 23e7e134ff..1bc4786034 100644 --- a/tools/build_defs/pkg/BUILD +++ b/tools/build_defs/pkg/BUILD @@ -15,6 +15,7 @@ exports_files( py_library( name = "archive", srcs = ["archive.py"], + srcs_version = "PY2AND3", visibility = [ "//tools/build_defs/docker:__subpackages__", ], @@ -32,6 +33,7 @@ py_test( "testenv.py", ], data = [":archive_testdata"], + srcs_version = "PY2AND3", deps = [":archive"], ) @@ -39,11 +41,13 @@ py_test( name = "path_test", srcs = ["path_test.py"], data = ["path.bzl"], + srcs_version = "PY2AND3", ) py_binary( name = "build_tar", srcs = ["build_tar.py"], + srcs_version = "PY2AND3", visibility = ["//visibility:public"], deps = [ ":archive", @@ -54,6 +58,7 @@ py_binary( py_binary( name = "make_deb", srcs = ["make_deb.py"], + srcs_version = "PY2AND3", visibility = ["//visibility:public"], deps = [ ":archive", |