Skip to content

Commit

Permalink
Automated rollback of change 131452196
Browse files Browse the repository at this point in the history
Change: 131951691
  • Loading branch information
tensorflower-gardener committed Sep 1, 2016
1 parent e146dc6 commit fb52ade
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
1 change: 1 addition & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

40 changes: 21 additions & 19 deletions tensorflow/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

load("//third_party/gpus:cuda_configure.bzl", "cuda_configure")

# If TensorFlow is linked as a submodule, path_prefix is TensorFlow's directory
# within the workspace (e.g. "tensorflow/"), and tf_repo_name is the name of the
# local_repository rule (e.g. "@tf").
# If TensorFlow is linked as a submodule.
# path_prefix and tf_repo_name are no longer used.
def tf_workspace(path_prefix = "", tf_repo_name = ""):
cuda_configure(name = "local_config_cuda")

if path_prefix:
print("path_prefix was specified to tf_workspace but is no longer used and will be removed in the future.")
if tf_repo_name:
print("tf_repo_name was specified to tf_workspace but is no longer used and will be removed in the future.")
# These lines need to be changed when updating Eigen. They are parsed from
# this file by the cmake and make builds to determine the eigen version and hash.
eigen_version = "9e1b48c333aa"
Expand All @@ -18,7 +20,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
url = "https://bitbucket.org/eigen/eigen/get/" + eigen_version + ".tar.gz",
sha256 = eigen_sha256,
strip_prefix = "eigen-eigen-" + eigen_version,
build_file = path_prefix + "eigen.BUILD",
build_file = str(Label("//:eigen.BUILD")),
)

native.git_repository(
Expand All @@ -37,7 +39,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "farmhash_archive",
url = "https://github.com/google/farmhash/archive/34c13ddfab0e35422f4c3979f360635a8c050260.zip",
sha256 = "e3d37a59101f38fd58fb799ed404d630f0eee18bfc2a2433910977cc8fea9c28",
build_file = path_prefix + "farmhash.BUILD",
build_file = str(Label("//:farmhash.BUILD")),
)

native.bind(
Expand All @@ -56,28 +58,28 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "jpeg_archive",
url = "http://www.ijg.org/files/jpegsrc.v9a.tar.gz",
sha256 = "3a753ea48d917945dd54a2d97de388aa06ca2eb1066cbfdc6652036349fe05a7",
build_file = path_prefix + "jpeg.BUILD",
build_file = str(Label("//:jpeg.BUILD")),
)

native.new_http_archive(
name = "png_archive",
url = "https://github.com/glennrp/libpng/archive/v1.2.53.zip",
sha256 = "c35bcc6387495ee6e757507a68ba036d38ad05b415c2553b3debe2a57647a692",
build_file = path_prefix + "png.BUILD",
build_file = str(Label("//:png.BUILD")),
)

native.new_http_archive(
name = "gif_archive",
url = "http://ufpr.dl.sourceforge.net/project/giflib/giflib-5.1.4.tar.gz",
sha256 = "34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1",
build_file = path_prefix + "gif.BUILD",
build_file = str(Label("//:gif.BUILD")),
)

native.new_http_archive(
name = "six_archive",
url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
build_file = path_prefix + "six.BUILD",
build_file = str(Label("//:six.BUILD")),
)

native.bind(
Expand All @@ -95,7 +97,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "gmock_archive",
url = "http://pkgs.fedoraproject.org/repo/pkgs/gmock/gmock-1.7.0.zip/073b984d8798ea1594f5e44d85b20d66/gmock-1.7.0.zip",
sha256 = "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b",
build_file = path_prefix + "gmock.BUILD",
build_file = str(Label("//:gmock.BUILD")),
)

native.bind(
Expand All @@ -110,7 +112,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):

native.bind(
name = "python_headers",
actual = tf_repo_name + "//util/python:python_headers",
actual = str(Label("//util/python:python_headers")),
)

# grpc expects //external:protobuf_clib and //external:protobuf_compiler
Expand All @@ -130,7 +132,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
commit = "d7ff4ff40071d2b486a052183e3e9f9382afb745",
init_submodules = True,
remote = "https://github.com/grpc/grpc.git",
build_file = path_prefix + "grpc.BUILD",
build_file = str(Label("//:grpc.BUILD")),
)

# protobuf expects //external:grpc_cpp_plugin to point to grpc's
Expand All @@ -149,7 +151,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "jsoncpp_git",
remote = "https://github.com/open-source-parsers/jsoncpp.git",
commit = "11086dd6a7eba04289944367ca82cea71299ed70",
build_file = path_prefix + "jsoncpp.BUILD",
build_file = str(Label("//:jsoncpp.BUILD")),
)

native.bind(
Expand All @@ -167,7 +169,7 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "nanopb_git",
commit = "1251fa1",
remote = "https://github.com/nanopb/nanopb.git",
build_file = path_prefix + "nanopb.BUILD",
build_file = str(Label("//:nanopb.BUILD")),
)

native.bind(
Expand All @@ -179,26 +181,26 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
name = "avro_archive",
url = "http://www-us.apache.org/dist/avro/avro-1.8.0/cpp/avro-cpp-1.8.0.tar.gz",
sha256 = "ec6e2ec957e95ca07f70cc25f02f5c416f47cb27bd987a6ec770dcbe72527368",
build_file = path_prefix + "avro.BUILD",
build_file = str(Label("//:avro.BUILD")),
)

native.new_http_archive(
name = "boost_archive",
url = "http://pilotfiber.dl.sourceforge.net/project/boost/boost/1.61.0/boost_1_61_0.tar.gz",
sha256 = "a77c7cc660ec02704c6884fbb20c552d52d60a18f26573c9cee0788bf00ed7e6",
build_file = path_prefix + "boost.BUILD",
build_file = str(Label("//:boost.BUILD")),
)

native.new_http_archive(
name = "bzip2_archive",
url = "http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz",
sha256 = "a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd",
build_file = path_prefix + "bzip2.BUILD",
build_file = str(Label("//:bzip2.BUILD")),
)

native.new_http_archive(
name = "zlib_archive",
url = "http://zlib.net/zlib-1.2.8.tar.gz",
sha256 = "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d",
build_file = path_prefix + "zlib.BUILD",
build_file = str(Label("//:zlib.BUILD")),
)

0 comments on commit fb52ade

Please sign in to comment.