diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
commit | 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa (patch) | |
tree | 0a71618e774dce4efc0ddc7808557a03925de8d9 /sci-libs | |
parent | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (diff) |
gentoo auto-resync : 24:02:2024 - 17:40:43
Diffstat (limited to 'sci-libs')
26 files changed, 0 insertions, 3636 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex a3c861597f2a..dba23bb5088d 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/keras/Manifest b/sci-libs/keras/Manifest deleted file mode 100644 index c4cf5a2c98c4..000000000000 --- a/sci-libs/keras/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX keras-2.14.0-0001-bazel-Use-system-protobuf.patch 11290 BLAKE2B 5dd3bec2864dd58bf1514b26a6958da8985988ea3e59fc42c4644ecbf38cd836e25178eee98a99a91eb072e314c81b414ee610ead1fe0a54c59bde49f1edfa49 SHA512 5080aacb7be69a1fa4524c955765f8e359bd5bca826cf3d647c92559f1a5874b179f00a9acb0606f6856063d1b19c44898e2ff935e835b832f2901d4edb70a12 -DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33 SHA512 688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14 -DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c -DIST keras-2.15.0.tar.gz 2389088 BLAKE2B 8cadb992f8e23568a1680d825b382c25d5ec5b82be758289c977a071cb5000429d40738c1462c292f53cda20fbfdc499c025b2fbb1ca9637eb2a8e5789c0a5bf SHA512 2ce001d8dadda2a3df24420a512822204795300215db4496003c1f1a317223f1a8aa6f8b2493a67fbaf9986c2a48e1fd1065828eac6a6f3953bad3db66ed7515 -EBUILD keras-2.15.0.ebuild 2197 BLAKE2B f2bdb35121c18f04ac53afa6442784729226586e85ef16e64721db6f12560fb69a79650af46b88784f5b838d836aa208c6badd31c900eed22bbb6212e16fe530 SHA512 9e7f18ad2cc643b59c5fddcd09f4f79bd66752a6e4f6826659d42ee57af2cdb19c4ce0ecff4562d8f206a43d070ab7eab07b2b994e134a7085283299a459fe14 -MISC metadata.xml 500 BLAKE2B 503c82776ec2dd8ceb09ec37e41fb2555c34937d4bf8febb25aaf2faeefb6ae86d67d8e9e04ff47d0b81758fe4710a02ecb0939f727a7af0dbd25bcee50f3e2b SHA512 e2e0edf60e56427234b6a39e4a818735bd691d582eadca23d92debde8f3f759dea2b2a3acc399e1010ffd37d7bb4fa8d468076c0220b653a41668ead58ee5f66 diff --git a/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch b/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch deleted file mode 100644 index 526742490f90..000000000000 --- a/sci-libs/keras/files/keras-2.14.0-0001-bazel-Use-system-protobuf.patch +++ /dev/null @@ -1,330 +0,0 @@ -From a064130a9cb6a2544c96552d43b3ff1b4bab0de4 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 24 Nov 2023 00:35:16 +0800 -Subject: [PATCH] bazel: Use system protobuf - ---- - WORKSPACE | 52 ---------- - keras/protobuf/BUILD | 2 +- - third_party/BUILD | 8 +- - third_party/protobuf.bzl | 216 +++++++++++++++++++++++++++++++++++++++ - 4 files changed, 224 insertions(+), 54 deletions(-) - create mode 100644 third_party/protobuf.bzl - -diff --git a/WORKSPACE b/WORKSPACE -index c0ebc4e52..61282aead 100644 ---- a/WORKSPACE -+++ b/WORKSPACE -@@ -1,53 +1 @@ - workspace(name = "org_keras") -- --load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -- --# Needed by protobuf --load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") --http_archive( -- name = "bazel_skylib", -- urls = [ -- "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", -- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", -- ], -- sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", --) --load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") --bazel_skylib_workspace() -- --# Needed by protobuf --http_archive( -- name = "six_archive", -- build_file = "//third_party:six.BUILD", -- sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926", -- strip_prefix = "six-1.16.0", -- urls = ["https://pypi.python.org/packages/source/s/six/six-1.16.0.tar.gz"], --) -- --bind( -- name = "six", -- actual = "@six_archive//:six", --) -- --http_archive( -- name = "com_google_protobuf", -- sha256 = "f66073dee0bc159157b0bd7f502d7d1ee0bc76b3c1eac9836927511bdc4b3fc1", -- strip_prefix = "protobuf-3.21.9", -- urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.9.zip"], --) -- --# ZLIB. Need by com_google_protobuf. --http_archive( -- name = "zlib", -- build_file = "@com_google_protobuf//:third_party/zlib.BUILD", -- sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30", -- strip_prefix = "zlib-1.2.13", -- urls = [ -- "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.13.tar.gz", -- "https://zlib.net/zlib-1.2.13.tar.gz", -- ], --) -- -- --load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") --protobuf_deps() -diff --git a/keras/protobuf/BUILD b/keras/protobuf/BUILD -index e2f9c1f3b..d50579a7e 100644 ---- a/keras/protobuf/BUILD -+++ b/keras/protobuf/BUILD -@@ -1,7 +1,7 @@ - # Description: - # Contains Keras protobufs - --load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") -+load("//third_party:protobuf.bzl", "py_proto_library") - - package( - # copybara:uncomment default_applicable_licenses = ["//keras:license"], -diff --git a/third_party/BUILD b/third_party/BUILD -index 9be54076c..9399232f6 100644 ---- a/third_party/BUILD -+++ b/third_party/BUILD -@@ -1,4 +1,5 @@ - package( -+ default_visibility = ["//visibility:public"], - licenses = ["notice"], # Apache 2.0 - ) - -@@ -7,4 +8,9 @@ exports_files([ - "six.BUILD", - ]) - --package(default_visibility = ["//visibility:public"]) -+genrule( -+ name = "protoc", -+ outs = ["protoc.bin"], -+ cmd = "ln -s $$(which protoc) $@", -+ executable = 1, -+) -diff --git a/third_party/protobuf.bzl b/third_party/protobuf.bzl -new file mode 100644 -index 000000000..3a7ef0a27 ---- /dev/null -+++ b/third_party/protobuf.bzl -@@ -0,0 +1,216 @@ -+def _GetPath(ctx, path): -+ if ctx.label.workspace_root: -+ return ctx.label.workspace_root + "/" + path -+ else: -+ return path -+ -+def _IsNewExternal(ctx): -+ # Bazel 0.4.4 and older have genfiles paths that look like: -+ # bazel-out/local-fastbuild/genfiles/external/repo/foo -+ # After the exec root rearrangement, they look like: -+ # ../repo/bazel-out/local-fastbuild/genfiles/foo -+ return ctx.label.workspace_root.startswith("../") -+ -+def _GenDir(ctx): -+ if _IsNewExternal(ctx): -+ # We are using the fact that Bazel 0.4.4+ provides repository-relative paths -+ # for ctx.genfiles_dir. -+ return ctx.genfiles_dir.path + ( -+ "/" + ctx.attr.includes[0] if ctx.attr.includes and ctx.attr.includes[0] else "" -+ ) -+ -+ # This means that we're either in the old version OR the new version in the local repo. -+ # Either way, appending the source path to the genfiles dir works. -+ return ctx.var["GENDIR"] + "/" + _SourceDir(ctx) -+ -+def _SourceDir(ctx): -+ if not ctx.attr.includes: -+ return ctx.label.workspace_root -+ if not ctx.attr.includes[0]: -+ return _GetPath(ctx, ctx.label.package) -+ if not ctx.label.package: -+ return _GetPath(ctx, ctx.attr.includes[0]) -+ return _GetPath(ctx, ctx.label.package + "/" + ctx.attr.includes[0]) -+ -+def _PyOuts(srcs, use_grpc_plugin = False): -+ ret = [s[:-len(".proto")] + "_pb2.py" for s in srcs] -+ if use_grpc_plugin: -+ ret += [s[:-len(".proto")] + "_pb2_grpc.py" for s in srcs] -+ return ret -+ -+def _proto_gen_impl(ctx): -+ """General implementation for generating protos""" -+ srcs = ctx.files.srcs -+ deps = [] -+ deps += ctx.files.srcs -+ source_dir = _SourceDir(ctx) -+ gen_dir = _GenDir(ctx) -+ if source_dir: -+ import_flags = ["-I" + source_dir, "-I" + gen_dir] -+ else: -+ import_flags = ["-I."] -+ -+ for dep in ctx.attr.deps: -+ import_flags += dep.proto.import_flags -+ deps += dep.proto.deps -+ import_flags = depset(import_flags).to_list() -+ deps = depset(deps).to_list() -+ -+ args = [] -+ if ctx.attr.gen_cc: -+ args += ["--cpp_out=" + gen_dir] -+ if ctx.attr.gen_py: -+ args += ["--python_out=" + gen_dir] -+ -+ inputs = srcs + deps -+ tools = [ctx.executable.protoc] -+ if ctx.executable.plugin: -+ plugin = ctx.executable.plugin -+ lang = ctx.attr.plugin_language -+ if not lang and plugin.basename.startswith("protoc-gen-"): -+ lang = plugin.basename[len("protoc-gen-"):] -+ if not lang: -+ fail("cannot infer the target language of plugin", "plugin_language") -+ -+ outdir = gen_dir -+ if ctx.attr.plugin_options: -+ outdir = ",".join(ctx.attr.plugin_options) + ":" + outdir -+ args += ["--plugin=protoc-gen-%s=%s" % (lang, plugin.path)] -+ args += ["--%s_out=%s" % (lang, outdir)] -+ tools.append(plugin) -+ -+ if args: -+ ctx.actions.run( -+ inputs = inputs, -+ outputs = ctx.outputs.outs, -+ arguments = args + import_flags + [s.path for s in srcs], -+ executable = ctx.executable.protoc, -+ mnemonic = "ProtoCompile", -+ tools = tools, -+ use_default_shell_env = True, -+ ) -+ -+ return struct( -+ proto = struct( -+ srcs = srcs, -+ import_flags = import_flags, -+ deps = deps, -+ ), -+ ) -+ -+proto_gen = rule( -+ attrs = { -+ "srcs": attr.label_list(allow_files = True), -+ "deps": attr.label_list(providers = ["proto"]), -+ "includes": attr.string_list(), -+ "protoc": attr.label( -+ cfg = "host", -+ executable = True, -+ allow_single_file = True, -+ mandatory = True, -+ ), -+ "plugin": attr.label( -+ cfg = "host", -+ allow_files = True, -+ executable = True, -+ ), -+ "plugin_language": attr.string(), -+ "plugin_options": attr.string_list(), -+ "gen_cc": attr.bool(), -+ "gen_py": attr.bool(), -+ "outs": attr.output_list(), -+ }, -+ output_to_genfiles = True, -+ implementation = _proto_gen_impl, -+) -+"""Generates codes from Protocol Buffers definitions. -+ -+This rule helps you to implement Skylark macros specific to the target -+language. You should prefer more specific `cc_proto_library `, -+`py_proto_library` and others unless you are adding such wrapper macros. -+ -+Args: -+ srcs: Protocol Buffers definition files (.proto) to run the protocol compiler -+ against. -+ deps: a list of dependency labels; must be other proto libraries. -+ includes: a list of include paths to .proto files. -+ protoc: the label of the protocol compiler to generate the sources. -+ plugin: the label of the protocol compiler plugin to be passed to the protocol -+ compiler. -+ plugin_language: the language of the generated sources -+ plugin_options: a list of options to be passed to the plugin -+ gen_cc: generates C++ sources in addition to the ones from the plugin. -+ gen_py: generates Python sources in addition to the ones from the plugin. -+ outs: a list of labels of the expected outputs from the protocol compiler. -+""" -+ -+def py_proto_library( -+ name, -+ srcs = [], -+ deps = [], -+ py_libs = [], -+ py_extra_srcs = [], -+ include = None, -+ default_runtime = None, -+ protoc = "//third_party:protoc", -+ use_grpc_plugin = False, -+ **kwargs): -+ """Bazel rule to create a Python protobuf library from proto source files -+ -+ NOTE: the rule is only an internal workaround to generate protos. The -+ interface may change and the rule may be removed when bazel has introduced -+ the native rule. -+ -+ Args: -+ name: the name of the py_proto_library. -+ srcs: the .proto files of the py_proto_library. -+ deps: a list of dependency labels; must be py_proto_library. -+ py_libs: a list of other py_library targets depended by the generated -+ py_library. -+ py_extra_srcs: extra source files that will be added to the output -+ py_library. This attribute is used for internal bootstrapping. -+ include: a string indicating the include path of the .proto files. -+ default_runtime: the implicitly default runtime which will be depended on by -+ the generated py_library target. -+ protoc: the label of the protocol compiler to generate the sources. -+ use_grpc_plugin: a flag to indicate whether to call the Python C++ plugin -+ when processing the proto files. -+ **kwargs: other keyword arguments that are passed to py_library. -+ -+ """ -+ outs = _PyOuts(srcs, use_grpc_plugin) -+ -+ includes = [] -+ if include != None: -+ includes = [include] -+ -+ grpc_python_plugin = None -+ if use_grpc_plugin: -+ grpc_python_plugin = "//external:grpc_python_plugin" -+ # Note: Generated grpc code depends on Python grpc module. This dependency -+ # is not explicitly listed in py_libs. Instead, host system is assumed to -+ # have grpc installed. -+ -+ proto_gen( -+ name = name + "_genproto", -+ srcs = srcs, -+ deps = [s + "_genproto" for s in deps], -+ includes = includes, -+ protoc = protoc, -+ gen_py = 1, -+ outs = outs, -+ visibility = ["//visibility:public"], -+ plugin = grpc_python_plugin, -+ plugin_language = "grpc", -+ ) -+ -+ if default_runtime and not default_runtime in py_libs + deps: -+ py_libs = py_libs + [default_runtime] -+ -+ native.py_library( -+ name = name, -+ srcs = outs + py_extra_srcs, -+ deps = py_libs + deps, -+ imports = includes, -+ **kwargs -+ ) --- -2.41.0 - diff --git a/sci-libs/keras/keras-2.15.0.ebuild b/sci-libs/keras/keras-2.15.0.ebuild deleted file mode 100644 index c67472647c1b..000000000000 --- a/sci-libs/keras/keras-2.15.0.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -inherit bazel distutils-r1 - -DESCRIPTION="Deep Learning for humans" -HOMEPAGE="https://keras.io/" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -bazel_external_uris=" - https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz -> bazelbuild-rules_cc-0.0.2.tar.gz - https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip" - -SRC_URI="https://github.com/keras-team/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz - ${bazel_external_uris}" - -RDEPEND=" - >=dev-libs/protobuf-3.13.0:= - dev-python/absl-py[${PYTHON_USEDEP}] - dev-python/h5py[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - >=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - >=sci-libs/keras-applications-1.0.8[${PYTHON_USEDEP}] - >=sci-libs/keras-preprocessing-1.1.2[${PYTHON_USEDEP}] - >=sci-libs/tensorflow-2.15[python,${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" -BDEPEND=" - app-arch/unzip - >=dev-libs/protobuf-3.13.0 - dev-java/java-config - >=dev-build/bazel-5.3.0" - -# Bazel tests not pytest, also want GPU access -RESTRICT="test" -DOCS=( CONTRIBUTING.md README.md ) -PATCHES=( - "${FILESDIR}/keras-2.14.0-0001-bazel-Use-system-protobuf.patch" -) - -src_unpack() { - unpack "${P}.tar.gz" - bazel_load_distfiles "${bazel_external_uris}" -} - -src_prepare() { - bazel_setup_bazelrc - default - python_copy_sources -} - -python_compile() { - pushd "${BUILD_DIR}" >/dev/null || die - - ebazel build //keras/tools/pip_package:build_pip_package - ebazel shutdown - - local srcdir="${T}/src-${EPYTHON/./_}" - mkdir -p "${srcdir}" || die - bazel-bin/keras/tools/pip_package/build_pip_package --src "${srcdir}" || die - - popd || die -} - -src_compile() { - export JAVA_HOME=$(java-config --jre-home) - distutils-r1_src_compile -} - -python_install() { - pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die - esetup.py install - python_optimize - popd || die -} diff --git a/sci-libs/keras/metadata.xml b/sci-libs/keras/metadata.xml deleted file mode 100644 index c2708124bd6d..000000000000 --- a/sci-libs/keras/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>perfinion@gentoo.org</email> - <name>Jason Zaman</name> - </maintainer> - <longdescription lang="en"> - A deep learning for humans. TensorFlow Keras is an implementation - of the Keras API that uses TensorFlow as a backend. - </longdescription> - <upstream> - <remote-id type="github">keras-team/keras</remote-id> - </upstream> -</pkgmetadata> diff --git a/sci-libs/tensorflow-estimator/Manifest b/sci-libs/tensorflow-estimator/Manifest deleted file mode 100644 index d395d12263ef..000000000000 --- a/sci-libs/tensorflow-estimator/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX 0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch 1449 BLAKE2B a7ead50569e8dd70c98e11abe7203520fa6c55195b75576c2efbe68c43435d429b60173f3c05b2e8885f7931a770c7de042da70a7df1b075f02def366c08af5b SHA512 ae8961d088954a2ad4db3996f67b578ddf11a6bda43ae596b22b156fea05a9bcda0d048aa4eee45fd8ea2e5739ca753eef7afe04020370fe6093e4cd95aa3d64 -AUX 0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch 28494 BLAKE2B e1cb1cef771a81fd28375a8af02bfce9bf0109ff38666688a117cf6a095799c82e2b9a88dd2d42a811713778904165323a9b27950dbc0a29dca9597a4dcdb382 SHA512 63f74cb59a00f91e083bc0fc53c7646cf1f3943beaa7636a414c793a793a4bd156ce891941709706b69d91dff9532f2e72e1edd9457f69e6d2dad8380fab4772 -DIST bazelbuild-rules_cc-0.0.2.tar.gz 127138 BLAKE2B 2a4cb12096bd8e6efebb13861b259ea12266372d37ef0d6c6005c4b9a6f919c26e1caa2ac78578aefd80a4f5bf08c1a14e15df5218f5d6b949beacba116b7b33 SHA512 688b5e6ea0e4cc8e5e11fc7aaac70f88c54d2d70221df0772eea1f0ff3ec16e2e92305f76da09c3c497f29e9132870ceaec7ecad034cca678ff4303899b67c14 -DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c -DIST tensorflow-estimator-2.15.0.tar.gz 658541 BLAKE2B 519ccab7f77a3074009b3b9d24f18267abece981dc33a7716cd916b388a4306183221ec12ddb3e32ac41cbe30d936dc504d931a612b71d35093d27def5d391e8 SHA512 129fe36ee63932b324d8ee77f917d4ded99be2e645e0884bd920bebf703b63889ed72b76b14fcc3aa8f9cfd0b465428d67067fcfc43f2c761a101ea56d574d04 -EBUILD tensorflow-estimator-2.15.0.ebuild 1991 BLAKE2B f94c45271ea2b13529d2daf2f81722a0cd69326c6005039f5eb080812982fe74523704863e191377780069f4b3c9d267337b9343d911d14ae05d2676b97961b7 SHA512 3ef8ea27ffb9bacf6a56ea0a2adf76c7ecd7474f4a89eac85fb0aa4ef06dee5a9f5b2ac579255f2c0ebb452fcc3fc84d81bfaea474d3593d2c3493782173a55a -MISC metadata.xml 581 BLAKE2B f3c4be0d25d3337871d9fc5f0d2e1e420fd68f45c2a7fbabaab0557f2f323661d4dd1ab847778ccc5a06bfe86a6fcf77bc4f65a04baa8ed569fd868ca8a03009 SHA512 41e7c5f2bce2166ed98259fa86fcf92cb3e2e186e7387a1cc75d630313791fc83e297288ce52ad25655292eb14b28a651dec3cb6b3101c75c327f447b15d6293 diff --git a/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch b/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch deleted file mode 100644 index cc44a9592d96..000000000000 --- a/sci-libs/tensorflow-estimator/files/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch +++ /dev/null @@ -1,29 +0,0 @@ -From f6d965a9f81b3062ca2f9194bcfa52ee4eeec928 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Sat, 23 Dec 2023 10:06:57 +0800 -Subject: [PATCH 1/2] Revert "Exclude `extractor_wrapper` and - `generator_wrapper` from the pip package, and remove the exclusion for the - deleted `create_python_api_wrapper`." - -This reverts commit bd50049c3905fd8c9ad058d2e09682b45b9b9b02. ---- - tensorflow_estimator/tools/pip_package/create_pip_helper.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/tensorflow_estimator/tools/pip_package/create_pip_helper.py b/tensorflow_estimator/tools/pip_package/create_pip_helper.py -index 4810594..e1b1f27 100644 ---- a/tensorflow_estimator/tools/pip_package/create_pip_helper.py -+++ b/tensorflow_estimator/tools/pip_package/create_pip_helper.py -@@ -35,8 +35,7 @@ PIP_EXCLUDED_FILES = frozenset([ - 'tensorflow_estimator/python/estimator/canned/v1/baseline_test_v1.py', - 'tensorflow_estimator/python/estimator/canned/v1/dnn_test_fc_v1_v1.py', - 'tensorflow_estimator/python/estimator/canned/v1/dnn_test_fc_v2_v1.py', -- 'tensorflow_estimator/python/estimator/api/extractor_wrapper.py', -- 'tensorflow_estimator/python/estimator/api/generator_wrapper.py', -+ 'tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py', - 'tensorflow_estimator/tools/pip_package/setup.py', - 'tensorflow_estimator/tools/pip_package/create_pip_helper.py', - ]) --- -2.41.0 - diff --git a/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch b/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch deleted file mode 100644 index d7167adb8488..000000000000 --- a/sci-libs/tensorflow-estimator/files/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch +++ /dev/null @@ -1,703 +0,0 @@ -From 38076a1b48096ef7b4f1e5005fdf9e14425d56a8 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Sat, 23 Dec 2023 10:07:02 +0800 -Subject: [PATCH 2/2] Revert "Update TF Estimator to use new TF API Generator" - -This reverts commit f7653f9adf978acb3bd459e6ec779a659f1f9a2a. ---- - tensorflow_estimator/BUILD | 14 +- - .../python/estimator/api/BUILD | 48 +- - .../python/estimator/api/api_gen.bzl | 422 ++++-------------- - .../api/create_python_api_wrapper.py | 30 ++ - .../python/estimator/api/extractor_wrapper.py | 21 - - .../python/estimator/api/generator_wrapper.py | 20 - - 6 files changed, 155 insertions(+), 400 deletions(-) - create mode 100644 tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py - delete mode 100644 tensorflow_estimator/python/estimator/api/extractor_wrapper.py - delete mode 100644 tensorflow_estimator/python/estimator/api/generator_wrapper.py - -diff --git a/tensorflow_estimator/BUILD b/tensorflow_estimator/BUILD -index 680cc4e..037c7a9 100644 ---- a/tensorflow_estimator/BUILD -+++ b/tensorflow_estimator/BUILD -@@ -5,7 +5,7 @@ load( - "//tensorflow_estimator/python/estimator/api:api_gen.bzl", - "ESTIMATOR_API_INIT_FILES_V1", - "ESTIMATOR_API_INIT_FILES_V2", -- "generate_apis", -+ "gen_api_init_files", - ) - - licenses(["notice"]) -@@ -67,17 +67,17 @@ py_library( - genrule( - name = "root_init_gen", - srcs = select({ -- "api_version_2": ["_api/v2/v2.py"], -- "//conditions:default": ["_api/v1/v1.py"], -+ "api_version_2": [":estimator_python_api_gen_compat_v2"], -+ "//conditions:default": [":estimator_python_api_gen_compat_v1"], - }), - outs = ["__init__.py"], - cmd = select({ -- "api_version_2": "cp $(location :_api/v2/v2.py) $(OUTS)", -- "//conditions:default": "cp $(location :_api/v1/v1.py) $(OUTS)", -+ "api_version_2": "cp $(@D)/_api/v2/v2.py $(OUTS)", -+ "//conditions:default": "cp $(@D)/_api/v1/v1.py $(OUTS)", - }), - ) - --generate_apis( -+gen_api_init_files( - name = "estimator_python_api_gen_compat_v1", - api_version = 1, - output_dir = "_api/v1/", -@@ -86,7 +86,7 @@ generate_apis( - root_file_name = "v1.py", - ) - --generate_apis( -+gen_api_init_files( - name = "estimator_python_api_gen_compat_v2", - api_version = 2, - output_dir = "_api/v2/", -diff --git a/tensorflow_estimator/python/estimator/api/BUILD b/tensorflow_estimator/python/estimator/api/BUILD -index 01dce90..96ac567 100644 ---- a/tensorflow_estimator/python/estimator/api/BUILD -+++ b/tensorflow_estimator/python/estimator/api/BUILD -@@ -1,10 +1,17 @@ --# Placeholder: load aliased py_binary --load("//tensorflow_estimator/python/estimator/api:api_gen.bzl", "ESTIMATOR_API_INIT_FILES_V1", "ESTIMATOR_API_INIT_FILES_V2", "generate_apis") -- - package(default_visibility = ["//tensorflow_estimator:internal"]) - - licenses(["notice"]) - -+load("//tensorflow_estimator/python/estimator/api:api_gen.bzl", "gen_api_init_files") -+load("//tensorflow_estimator/python/estimator/api:api_gen.bzl", "ESTIMATOR_API_INIT_FILES_V1") -+load("//tensorflow_estimator/python/estimator/api:api_gen.bzl", "ESTIMATOR_API_INIT_FILES_V2") -+ -+exports_files( -+ [ -+ "create_python_api_wrapper.py", -+ ], -+) -+ - # This flag specifies whether Estimator 2.0 API should be built instead - # of 1.* API. Note that Estimator 2.0 API is currently under development. - config_setting( -@@ -12,53 +19,36 @@ config_setting( - define_values = {"estimator_api_version": "2"}, - ) - --py_binary( -- name = "extractor_wrapper", -- srcs = ["extractor_wrapper.py"], -- visibility = ["//visibility:public"], -- deps = [ -- "//tensorflow_estimator/python/estimator:expect_absl_installed", # absl:app -- ], --) -- --py_binary( -- name = "generator_wrapper", -- srcs = ["generator_wrapper.py"], -- visibility = ["//visibility:public"], -- deps = [ -- "//tensorflow_estimator/python/estimator:expect_absl_installed", # absl:app -- ], --) -- - genrule( - name = "estimator_python_api_gen", - srcs = select({ -- "api_version_2": ["_v2/v2.py"], -- "//conditions:default": ["_v1/v1.py"], -+ "api_version_2": [":estimator_python_api_gen_compat_v2"], -+ "//conditions:default": [":estimator_python_api_gen_compat_v1"], - }), - outs = ["__init__.py"], - cmd = select({ -- "api_version_2": "cp $(location :_v2/v2.py) $(OUTS)", -- "//conditions:default": "cp $(location :_v1/v1.py) $(OUTS)", -+ # Copy the right init file and replace 'from . import' -+ # with 'from ._vN import'. -+ "api_version_2": "cp $(@D)/_v2/v2.py $(OUTS) && sed -i'.original' 's/from . import/from ._v2 import/g' $(OUTS)", -+ "//conditions:default": "cp $(@D)/_v1/v1.py $(OUTS) && sed -i'.original' 's/from . import/from ._v1 import/g' $(OUTS)", - }), -+ visibility = ["//visibility:public"], - ) - --generate_apis( -+gen_api_init_files( - name = "estimator_python_api_gen_compat_v1", - api_version = 1, - output_dir = "_v1/", - output_files = ESTIMATOR_API_INIT_FILES_V1, - output_package = "tensorflow_estimator.python.estimator.api._v1", - root_file_name = "v1.py", -- visibility = ["//visibility:public"], - ) - --generate_apis( -+gen_api_init_files( - name = "estimator_python_api_gen_compat_v2", - api_version = 2, - output_dir = "_v2/", - output_files = ESTIMATOR_API_INIT_FILES_V2, - output_package = "tensorflow_estimator.python.estimator.api._v2", - root_file_name = "v2.py", -- visibility = ["//visibility:public"], - ) -diff --git a/tensorflow_estimator/python/estimator/api/api_gen.bzl b/tensorflow_estimator/python/estimator/api/api_gen.bzl -index b8eaf84..87dd65b 100644 ---- a/tensorflow_estimator/python/estimator/api/api_gen.bzl -+++ b/tensorflow_estimator/python/estimator/api/api_gen.bzl -@@ -1,7 +1,7 @@ --"""Targets for generating TensorFlow Estimator Python API __init__.py files. -+"""Targets for generating TensorFlow Python API __init__.py files. - - This bzl file is copied with slight modifications from --tensorflow/python/tools/api/generator2/generate_api.bzl -+tensorflow/python/estimator/api/api_gen.bzl - so that we can avoid needing to depend on TF source code in Bazel build. - - It should be noted that because this file is executed during the build, -@@ -10,15 +10,7 @@ is required to Bazel build Estimator. - """ - - load("//tensorflow_estimator:estimator.bzl", "if_indexing_source_code") -- --_TARGET_PATTERNS = [ -- "//tensorflow_estimator:", -- "//tensorflow_estimator/", --] -- --_DECORATOR = "tensorflow_estimator.python.estimator.estimator_export.estimator_export" -- --_MODULE_PREFIX = "" -+# Placeholder: load aliased py_binary - - ESTIMATOR_API_INIT_FILES_V1 = [ - "__init__.py", -@@ -38,332 +30,116 @@ ESTIMATOR_API_INIT_FILES_V2 = [ - "estimator/inputs/__init__.py", - ] - --def _any_match(label): -- full_target = "//" + label.package + ":" + label.name -- for pattern in _TARGET_PATTERNS: -- if pattern in full_target: -- return True -- return False -- --def _join(path, *others): -- result = path -- -- for p in others: -- if not result or result.endswith("/"): -- result += p -- else: -- result += "/" + p -- -- return result -- --def _api_info_init(*, transitive_api): -- if type(transitive_api) != type(depset()): -- fail("ApiInfo.transitive_api must be a depset") -- return {"transitive_api": transitive_api} -- --ApiInfo, _new_api_info = provider( -- doc = "Provider for API symbols and docstrings extracted from Python files.", -- fields = { -- "transitive_api": "depset of files with extracted API.", -- }, -- init = _api_info_init, --) -- --def _py_files(f): -- if f.basename.endswith(".py") or f.basename.endswith(".py3"): -- return f.path -- return None -- --def _merge_py_info( -- deps, -- direct_sources = None, -- direct_imports = None, -- has_py2_only_sources = False, -- has_py3_only_sources = False, -- uses_shared_libraries = False): -- transitive_sources = [] -- transitive_imports = [] -- for dep in deps: -- if PyInfo in dep: -- transitive_sources.append(dep[PyInfo].transitive_sources) -- transitive_imports.append(dep[PyInfo].imports) -- has_py2_only_sources = has_py2_only_sources or dep[PyInfo].has_py2_only_sources -- has_py3_only_sources = has_py3_only_sources or dep[PyInfo].has_py3_only_sources -- uses_shared_libraries = uses_shared_libraries or dep[PyInfo].uses_shared_libraries -- -- return PyInfo( -- transitive_sources = depset(direct = direct_sources, transitive = transitive_sources), -- imports = depset(direct = direct_imports, transitive = transitive_imports), -- has_py2_only_sources = has_py2_only_sources, -- has_py3_only_sources = has_py3_only_sources, -- uses_shared_libraries = uses_shared_libraries, -- ) -- --def _merge_api_info( -- deps, -- direct_api = None): -- transitive_api = [] -- for dep in deps: -- if ApiInfo in dep: -- transitive_api.append(dep[ApiInfo].transitive_api) -- return ApiInfo(transitive_api = depset(direct = direct_api, transitive = transitive_api)) -- --def _api_extractor_impl(target, ctx): -- direct_api = [] -- -- # Make sure the rule has a non-empty srcs attribute. -- if ( -- _any_match(target.label) and -- hasattr(ctx.rule.attr, "srcs") and -- ctx.rule.attr.srcs -- ): -- output = ctx.actions.declare_file("_".join([ -- target.label.name, -- "extracted_tensorflow_estimator_api.json", -- ])) -- -- args = ctx.actions.args() -- args.set_param_file_format("multiline") -- args.use_param_file("--flagfile=%s") -- -- args.add("--output", output) -- args.add("--decorator", _DECORATOR) -- args.add("--api_name", "tensorflow_estimator") -- args.add_all(ctx.rule.files.srcs, expand_directories = True, map_each = _py_files) -- -- ctx.actions.run( -- mnemonic = "ExtractAPI", -- executable = ctx.executable._extractor_bin, -- inputs = ctx.rule.files.srcs, -- outputs = [output], -- arguments = [args], -- progress_message = "Extracting tensorflow_estimator APIs for %{label} to %{output}.", -- ) -- -- direct_api.append(output) -- -- return [ -- _merge_api_info(ctx.rule.attr.deps if hasattr(ctx.rule.attr, "deps") else [], direct_api = direct_api), -- ] -- --api_extractor = aspect( -- doc = "Extracts the exported API for the given target and its dependencies.", -- implementation = _api_extractor_impl, -- attr_aspects = ["deps"], -- provides = [ApiInfo], -- # Currently the Python rules do not correctly advertise their providers. -- # required_providers = [PyInfo], -- attrs = { -- "_extractor_bin": attr.label( -- default = Label("//tensorflow_estimator/python/estimator/api:extractor_wrapper"), -- executable = True, -- cfg = "exec", -- ), -- }, --) -- --def _extract_api_impl(ctx): -- return [ -- _merge_api_info(ctx.attr.deps), -- _merge_py_info(ctx.attr.deps), -- ] -- --extract_api = rule( -- doc = "Extract Python API for all targets in transitive dependencies.", -- implementation = _extract_api_impl, -- attrs = { -- "deps": attr.label_list( -- doc = "Targets to extract API from.", -- allow_empty = False, -- aspects = [api_extractor], -- providers = [PyInfo], -- mandatory = True, -- ), -- }, -- provides = [ApiInfo, PyInfo], --) -- --def _generate_api_impl(ctx): -- args = ctx.actions.args() -- args.set_param_file_format("multiline") -- args.use_param_file("--flagfile=%s") -- -- args.add_joined("--output_files", ctx.outputs.output_files, join_with = ",") -- args.add("--output_dir", _join(ctx.bin_dir.path, ctx.label.package, ctx.attr.output_dir)) -- if ctx.file.root_init_template: -- args.add("--root_init_template", ctx.file.root_init_template) -- args.add("--apiversion", ctx.attr.api_version) -- args.add_joined("--compat_api_versions", ctx.attr.compat_api_versions, join_with = ",") -- args.add_joined("--compat_init_templates", ctx.files.compat_init_templates, join_with = ",") -- args.add("--output_package", ctx.attr.output_package) -- args.add_joined("--packages_to_ignore", ctx.attr.packages_to_ignore, join_with = ",") -- if _MODULE_PREFIX: -- args.add("--module_prefix", _MODULE_PREFIX) -- if ctx.attr.use_lazy_loading: -- args.add("--use_lazy_loading") -- else: -- args.add("--nouse_lazy_loading") -- if ctx.attr.proxy_module_root: -- args.add("--proxy_module_root", ctx.attr.proxy_module_root) -- args.add_joined("--file_prefixes_to_strip", [ctx.bin_dir.path, ctx.genfiles_dir.path], join_with = ",") -- if ctx.attr.root_file_name: -- args.add("--root_file_name", ctx.attr.root_file_name) -- -- inputs = depset(transitive = [ -- dep[ApiInfo].transitive_api -- for dep in ctx.attr.deps -- ]) -- args.add_all( -- inputs, -- expand_directories = True, -- ) -- -- transitive_inputs = [inputs] -- if ctx.attr.root_init_template: -- transitive_inputs.append(ctx.attr.root_init_template.files) -- -- ctx.actions.run( -- mnemonic = "GenerateAPI", -- executable = ctx.executable._generator_bin, -- inputs = depset( -- direct = ctx.files.compat_init_templates, -- transitive = transitive_inputs, -- ), -- outputs = ctx.outputs.output_files, -- arguments = [args], -- progress_message = "Generating APIs for %{label} to %{output}.", -- ) -- --generate_api = rule( -- doc = "Generate Python API for all targets in transitive dependencies.", -- implementation = _generate_api_impl, -- attrs = { -- "deps": attr.label_list( -- doc = "extract_api targets to generate API from.", -- allow_empty = True, -- providers = [ApiInfo, PyInfo], -- mandatory = True, -- ), -- "root_init_template": attr.label( -- doc = "Template for the top level __init__.py file", -- allow_single_file = True, -- ), -- "api_version": attr.int( -- doc = "The API version to generate (1 or 2)", -- values = [1, 2], -- ), -- "compat_api_versions": attr.int_list( -- doc = "Additional versions to generate in compat/ subdirectory.", -- ), -- "compat_init_templates": attr.label_list( -- doc = "Template for top-level __init__files under compat modules. This list must be " + -- "in the same order as the list of versions in compat_apiversions", -- allow_files = True, -- ), -- "output_package": attr.string( -- doc = "Root output package.", -- ), -- "output_dir": attr.string( -- doc = "Subdirectory to output API to. If non-empty, must end with '/'.", -- ), -- "proxy_module_root": attr.string( -- doc = "Module root for proxy-import format. If specified, proxy files with " + -- "`from proxy_module_root.proxy_module import *` will be created to enable " + -- "import resolution under TensorFlow.", -- ), -- "output_files": attr.output_list( -- doc = "List of __init__.py files that should be generated. This list should include " + -- "file name for every module exported using tf_export. For e.g. if an op is " + -- "decorated with @tf_export('module1.module2', 'module3'). Then, output_files " + -- "should include module1/module2/__init__.py and module3/__init__.py.", -- ), -- "use_lazy_loading": attr.bool( -- doc = "If true, lazy load imports in the generated API rather then imporing them all statically.", -- ), -- "packages_to_ignore": attr.string_list( -- doc = "List of packages to ignore tf_exports from.", -- ), -- "root_file_name": attr.string( -- doc = "The file name that should be generated for the top level API.", -- ), -- "_generator_bin": attr.label( -- default = Label("//tensorflow_estimator/python/estimator/api:generator_wrapper"), -- executable = True, -- cfg = "exec", -- ), -- }, --) -- --def generate_apis( -+def gen_api_init_files( - name, -- deps = [ -+ output_files, -+ root_init_template = None, -+ srcs = [], -+ api_name = "estimator", -+ api_version = 2, -+ compat_api_versions = [], -+ compat_init_templates = [], -+ packages = ["tensorflow_estimator.python.estimator"], -+ package_deps = [ - "//tensorflow_estimator/python/estimator:estimator_py", - # "//third_party/tensorflow/lite/python:analyzer", - # "//third_party/tensorflow/lite/python:lite", - # "//third_party/tensorflow/lite/python/authoring", - ], -- output_files = ESTIMATOR_API_INIT_FILES_V2, -- root_init_template = None, -- api_version = 2, -- compat_api_versions = [], -- compat_init_templates = [], - output_package = "tensorflow_estimator.python.estimator.api", - output_dir = "", -- proxy_module_root = None, -- packages_to_ignore = [], -- root_file_name = "__init__.py", -- visibility = ["//visibility:private"]): -- """Generate TensorFlow APIs for a set of libraries. -+ root_file_name = "__init__.py"): -+ """Creates API directory structure and __init__.py files. -+ -+ Creates a genrule that generates a directory structure with __init__.py -+ files that import all exported modules (i.e. modules with tf_export -+ decorators). - - Args: -- name: name of generate_api target. -- deps: python_library targets to serve as roots for extracting APIs. -- output_files: The list of files that the API generator is exected to create. -- root_init_template: The template for the top level __init__.py file generated. -- "#API IMPORTS PLACEHOLDER" comment will be replaced with imports. -- api_version: THhe API version to generate. (1 or 2) -- compat_api_versions: Additional versions to generate in compat/ subdirectory. -- compat_init_templates: Template for top level __init__.py files under the compat modules. -- The list must be in the same order as the list of versions in 'compat_api_versions' -- output_package: Root output package. -- output_dir: Directory where the generated output files are placed. This should be a prefix -- of every directory in 'output_files' -- proxy_module_root: Module root for proxy-import format. If specified, proxy files with -- `from proxy_module_root.proxy_module import *` will be created to enable import -- resolution under TensorFlow. -- packages_to_ignore: List of packages to ignore tf_exports from. -- root_file_name: The file name that should be generated for the top level API. -- visibility: Visibility of the target containing the generated files. -+ name: name of genrule to create. -+ output_files: List of __init__.py files that should be generated. -+ This list should include file name for every module exported using -+ tf_export. For e.g. if an op is decorated with -+ @tf_export('module1.module2', 'module3'). Then, output_files should -+ include module1/module2/__init__.py and module3/__init__.py. -+ root_init_template: Python init file that should be used as template for -+ root __init__.py file. "# API IMPORTS PLACEHOLDER" comment inside this -+ template will be replaced with root imports collected by this genrule. -+ srcs: genrule sources. If passing root_init_template, the template file -+ must be included in sources. -+ api_name: Name of the project that you want to generate API files for -+ (e.g. "tensorflow" or "estimator"). -+ api_version: TensorFlow API version to generate. Must be either 1 or 2. -+ compat_api_versions: Older TensorFlow API versions to generate under -+ compat/ directory. -+ compat_init_templates: Python init file that should be used as template -+ for top level __init__.py files under compat/vN directories. -+ "# API IMPORTS PLACEHOLDER" comment inside this -+ template will be replaced with root imports collected by this genrule. -+ packages: Python packages containing the @tf_export decorators you want to -+ process -+ package_deps: Python library target containing your packages. -+ output_package: Package where generated API will be added to. -+ output_dir: Subdirectory to output API to. -+ If non-empty, must end with '/'. -+ root_file_name: Name of the root file with all the root imports. - """ -- extract_name = name + ".extract-tensorflow-estimator" -- extract_api( -- name = extract_name, -- deps = deps, -- visibility = ["//visibility:private"], -+ root_init_template_flag = "" -+ if root_init_template: -+ root_init_template_flag = "--root_init_template=$(location " + root_init_template + ")" -+ -+ primary_package = packages[0] -+ api_gen_binary_target = ("create_" + primary_package + "_api_%d_%s") % (api_version, name) -+ native.py_binary( -+ name = api_gen_binary_target, -+ srcs = ["//tensorflow_estimator/python/estimator/api:create_python_api_wrapper.py"], -+ main = "//tensorflow_estimator/python/estimator/api:create_python_api_wrapper.py", -+ python_version = "PY3", -+ srcs_version = "PY3", -+ visibility = ["//visibility:public"], -+ deps = package_deps, - ) - -- if proxy_module_root != None: -- # Avoid conflicts between the __init__.py file of TensorFlow and proxy module. -- output_files = [f for f in output_files if f != "__init__.py"] -- -- if root_file_name != None: -- output_files = [f if f != "__init__.py" else root_file_name for f in output_files] -+ # Replace name of root file with root_file_name. -+ output_files = [ -+ root_file_name if f == "__init__.py" else f -+ for f in output_files -+ ] -+ all_output_files = ["%s%s" % (output_dir, f) for f in output_files] -+ compat_api_version_flags = "" -+ for compat_api_version in compat_api_versions: -+ compat_api_version_flags += " --compat_apiversion=%d" % compat_api_version -+ -+ compat_init_template_flags = "" -+ for compat_init_template in compat_init_templates: -+ compat_init_template_flags += ( -+ " --compat_init_template=$(location %s)" % compat_init_template -+ ) - -- all_output_files = [_join(output_dir, f) for f in output_files] -+ flags = [ -+ root_init_template_flag, -+ "--apidir=$(@D)" + output_dir, -+ "--apiname=" + api_name, -+ "--apiversion=" + str(api_version), -+ compat_api_version_flags, -+ compat_init_template_flags, -+ "--packages=" + ",".join(packages), -+ "--output_package=" + output_package, -+ ] - -- generate_api( -+ native.genrule( - name = name, -- deps = [":" + extract_name], -- output_files = all_output_files, -- output_dir = output_dir, -- root_init_template = root_init_template, -- compat_api_versions = compat_api_versions, -- compat_init_templates = compat_init_templates, -- api_version = api_version, -- proxy_module_root = proxy_module_root, -- visibility = visibility, -- packages_to_ignore = packages_to_ignore, -- use_lazy_loading = False, -- output_package = output_package, -- root_file_name = root_file_name, -+ outs = all_output_files, -+ cmd = if_indexing_source_code( -+ _make_cmd(api_gen_binary_target, flags, loading = "static"), -+ _make_cmd(api_gen_binary_target, flags, loading = "default"), -+ ), -+ srcs = srcs, -+ tools = [":" + api_gen_binary_target], -+ visibility = ["//visibility:public"], - ) -+ -+def _make_cmd(api_gen_binary_target, flags, loading = "default"): -+ binary = "$(location :" + api_gen_binary_target + ")" -+ flags.append("--loading=" + loading) -+ return " ".join([binary] + flags + ["$(OUTS)"]) -diff --git a/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py b/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py -new file mode 100644 -index 0000000..9d52a02 ---- /dev/null -+++ b/tensorflow_estimator/python/estimator/api/create_python_api_wrapper.py -@@ -0,0 +1,30 @@ -+# Copyright 2018 The TensorFlow Authors. All Rights Reserved. -+# -+# Licensed under the Apache License, Version 2.0 (the "License"); -+# you may not use this file except in compliance with the License. -+# You may obtain a copy of the License at -+# -+# http://www.apache.org/licenses/LICENSE-2.0 -+# -+# Unless required by applicable law or agreed to in writing, software -+# distributed under the License is distributed on an "AS IS" BASIS, -+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -+# See the License for the specific language governing permissions and -+# limitations under the License. -+# ============================================================================== -+"""Thin wrapper to call TensorFlow's API generation script. -+ -+This file exists to provide a main function for the py_binary in the API -+generation genrule. It just calls the main function for the actual API -+generation script in TensorFlow. -+""" -+ -+from __future__ import absolute_import -+from __future__ import division -+from __future__ import print_function -+ -+from tensorflow_estimator.python.estimator import estimator_lib # pylint: disable=unused-import -+from tensorflow.python.tools.api.generator import create_python_api -+ -+if __name__ == '__main__': -+ create_python_api.main() -diff --git a/tensorflow_estimator/python/estimator/api/extractor_wrapper.py b/tensorflow_estimator/python/estimator/api/extractor_wrapper.py -deleted file mode 100644 -index 884fcba..0000000 ---- a/tensorflow_estimator/python/estimator/api/extractor_wrapper.py -+++ /dev/null -@@ -1,21 +0,0 @@ --# Copyright 2023 The TensorFlow Authors. All Rights Reserved. --# --# Licensed under the Apache License, Version 2.0 (the "License"); --# you may not use this file except in compliance with the License. --# You may obtain a copy of the License at --# --# http://www.apache.org/licenses/LICENSE-2.0 --# --# Unless required by applicable law or agreed to in writing, software --# distributed under the License is distributed on an "AS IS" BASIS, --# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --# See the License for the specific language governing permissions and --# limitations under the License. --# ============================================================================== --"""Thin wrapper to call TensorFlow's API extractor script.""" --from absl import app -- --from tensorflow.python.tools.api.generator2.extractor import extractor -- --if __name__ == "__main__": -- app.run(extractor.main) -diff --git a/tensorflow_estimator/python/estimator/api/generator_wrapper.py b/tensorflow_estimator/python/estimator/api/generator_wrapper.py -deleted file mode 100644 -index ffcd49a..0000000 ---- a/tensorflow_estimator/python/estimator/api/generator_wrapper.py -+++ /dev/null -@@ -1,20 +0,0 @@ --# Copyright 2023 The TensorFlow Authors. All Rights Reserved. --# --# Licensed under the Apache License, Version 2.0 (the "License"); --# you may not use this file except in compliance with the License. --# You may obtain a copy of the License at --# --# http://www.apache.org/licenses/LICENSE-2.0 --# --# Unless required by applicable law or agreed to in writing, software --# distributed under the License is distributed on an "AS IS" BASIS, --# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --# See the License for the specific language governing permissions and --# limitations under the License. --# ============================================================================== --"""Thin wrapper to call TensorFlow's API generator script.""" --from absl import app --from tensorflow.python.tools.api.generator2.generator import generator -- --if __name__ == "__main__": -- app.run(generator.main) --- -2.41.0 - diff --git a/sci-libs/tensorflow-estimator/metadata.xml b/sci-libs/tensorflow-estimator/metadata.xml deleted file mode 100644 index db4dc8444e40..000000000000 --- a/sci-libs/tensorflow-estimator/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>perfinion@gentoo.org</email> - <name>Jason Zaman</name> - </maintainer> - <longdescription lang="en"> - TensorFlow Estimator is a high-level TensorFlow API that greatly - simplifies machine learning programming. Estimators encapsulate - training, evaluation, prediction, and exporting for your model. - </longdescription> - <upstream> - <remote-id type="github">tensorflow/estimator</remote-id> - </upstream> -</pkgmetadata> diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.15.0.ebuild b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.15.0.ebuild deleted file mode 100644 index 662af9932208..000000000000 --- a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.15.0.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -MY_PN="estimator" -MY_PV=${PV/_rc/-rc} -MY_P=${MY_PN}-${MY_PV} - -inherit bazel distutils-r1 - -DESCRIPTION="A high-level TensorFlow API that greatly simplifies machine learning programming" -HOMEPAGE="https://www.tensorflow.org/" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -bazel_external_uris=" - https://github.com/bazelbuild/rules_cc/releases/download/0.0.2/rules_cc-0.0.2.tar.gz -> bazelbuild-rules_cc-0.0.2.tar.gz - https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip" - -SRC_URI="https://github.com/tensorflow/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz - ${bazel_external_uris}" - -RDEPEND=" - =sci-libs/tensorflow-2.15*[python,${PYTHON_USEDEP}] - sci-libs/keras[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" -BDEPEND=" - app-arch/unzip - >=dev-build/bazel-5.3.0 - dev-java/java-config -" - -S="${WORKDIR}/${MY_P}" - -DOCS=( CONTRIBUTING.md README.md ) - -PATCHES=( - "${FILESDIR}"/0001-Revert-Exclude-extractor_wrapper-and-generator_wrapp.patch - "${FILESDIR}"/0002-Revert-Update-TF-Estimator-to-use-new-TF-API-Generat.patch -) - -src_unpack() { - unpack "${P}.tar.gz" - bazel_load_distfiles "${bazel_external_uris}" -} - -src_prepare() { - bazel_setup_bazelrc - default - python_copy_sources -} - -python_compile() { - pushd "${BUILD_DIR}" >/dev/null || die - - ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package - ebazel shutdown - - local srcdir="${T}/src-${EPYTHON/./_}" - mkdir -p "${srcdir}" || die - bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src "${srcdir}" || die - - popd >/dev/null || die -} - -src_compile() { - export JAVA_HOME=$(java-config --jre-home) - distutils-r1_src_compile -} - -python_install() { - pushd "${T}/src-${EPYTHON/./_}" >/dev/null || die - esetup.py install - python_optimize - popd >/dev/null || die -} diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest deleted file mode 100644 index 2a4ba20150b5..000000000000 --- a/sci-libs/tensorflow/Manifest +++ /dev/null @@ -1,72 +0,0 @@ -AUX tensorflow-2.15.0-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch 1144 BLAKE2B 70bd537a8516b9ea3dba688880b4ba7efe9048d3ce7c716c183dd39016b7d7fcaedd730b7d3a2cafe18ae71d025fcb7ecb34a84ef1d35d9c38c16b35d9eaf8f6 SHA512 a4d1bab268f873c265f9c20cdafce5247daf08a760e29c088fed662929efaf770b573e7ff84f60d9c7a58887859b9e6d2a7fae6c333b7326b85af93341e37950 -AUX tensorflow-2.15.0-0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch 980 BLAKE2B b328fd6dce6ba1da4954f6f125fb5ea117d85fd83bf4dc036ae849509ef1edaafce6b64e9e1bbd42f8db0d130e56b2e1424f118234fe4d72d01f21cb79dca9c0 SHA512 b86b70c5b31bc6f7d49d1014af3d196252746b3870fdd7c6ffbd330ab67eb5229d95d4d6e06700cbba1b5ea3fd554bdb8ad4480aa484621e396eb51a0f9cde7d -AUX tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch 1122 BLAKE2B 66e5d8df040d689fcf022db16df1d9462b7aff05085b8e825043eb741faa674b49b3aee4e11650a9ccce52b54bdadf1c4f0c9aa9419951edfcf15f17696eb87b SHA512 545a63812d49a4dd7b4de412ce0b943f1aee44564e0adc2163fd79c83212d655d1d09ac6edc27aa8f70f6c479b01025ed61a0705ff570b7934a0fa858158e0f0 -AUX tensorflow-2.15.0-0004-tensorflow_cc-Add-systemlib-nsync-linkopts.patch 1230 BLAKE2B b771c535066ac5d35f4f025ae0d84e2d0bf38bbc299f430cb27ec77a623cda06c7b7ebf400061d385886b3650e3e57194abf9112fd5d1acb99449052a097021e SHA512 44eac1fcdcfce424a0ce30583faa38d67ebc415842ba3cc97fdac20d69edf1a837a8e78ebea33a33a163b88aa6346ad5e1237bf76ee0786b25247be95b866fa2 -AUX tensorflow-2.15.0-0005-systemlib-Updates-for-Abseil-20220623-LTS.patch 2075 BLAKE2B fb2704eeb56144de0ddff022a009a864669b22d3c83bc0fdbde03c0aedd113ffe453e0f5d567337a4eb073086dd1ba1810c2d2bc3a826cd07c61d008ed1c4cf7 SHA512 309f42cd6bfa767f55be5989465fb23c06fb6b32475fce5bce5b24d5f1790d65f415a8daa05918cdc74a15b923b8c80f65ec93432839360c1e900646a64317b2 -AUX tensorflow-2.15.0-0006-systemlib-Update-targets-for-absl_py.patch 692 BLAKE2B 9130a9b6e11678b9df3d887b412e71666a0046866d273ce00e12c5561579d5ba741e5081a04c9c49aae48921a8f9d325f0f6c33b6ae63616b1896b0cb7ca8cef SHA512 9279d8942997f57bd9b1bde488202259e614bdbdfd9be669b6cdd859b858f224661ace75a97d8ff4b4dd0d9e03350ae1de74552623e72618b92cf6dbeb2a887e -AUX tensorflow-2.15.0-0007-systemlib-Add-well_known_types_py_pb2-target.patch 965 BLAKE2B f98f72999311ee41d39ee2763fb8265ee38b49618cf8dc7be5441b128e55f780cc6befb8a53aef23ff775783edc12b783e300a9c6cb7390eceee92b85738c108 SHA512 7b8e3fe528eeb015658d217872aa55872c7f2cee2b27b9ee6edd1378731af025e0b1197f9e137a3f04584405317f347c45b398100fab4781747ee75cd264d2f8 -AUX tensorflow-2.15.0-0008-Relax-setup.py-version-requirements.patch 3173 BLAKE2B a9f6ac201ad16892b7461d302b1d3b6dbdef3ac518069184608087bda3c2defba87b8d22d59c64bf2184a24bb19cbd83dcfbb06614c7c9aa70fc6795a4ff705d SHA512 585d8ebc69dac9793e71b8701509c364dafcaf7c83c48d72fddea0a76f1a01ae41befff232b886d151357fe7a7147ff59319de2db7613dd6ad78af167eefa54b -AUX tensorflow-2.15.0-0009-systemlib-update-targets-for-absl.patch 9427 BLAKE2B 3d86c9a639f87c57421e648745ac1c2de1544d506bc1b1699162f3af2ad0744e3ea47c6b40719ef6b18ca9ee119bf06feb2cddda1b689d5149bf5827113ee150 SHA512 f2eabaccbaacce610820f6121e85554beedaff338d5f4ca4817af6741fced4bbe5fe1d75217d0566d94054faf43d7ce56f56a2486d2326c32b8545e37827b58b -AUX tensorflow-2.15.0-0010-systemlib-fix-missing-osx-in-pybind11.patch 724 BLAKE2B bc451120de5dc747c664b3eda63c57e9fbe2d851fce79e853c1ebf648d910721b700b76e2ec9f03fec117ca40a109d89dd17411c544340ec6b561008eba412b0 SHA512 00ac44ef5c198e8d8f40e2aa04c9d6eef603e8ab5c0bd70123e4e339bdaa54d762c140d85172e08bfdafabd711eb90f33ceafee378ce9eb3bd3dbf694c42b2a4 -AUX tensorflow-2.15.0-0011-systemlib-fix-missing-LICENSE-in-flatbuffers.patch 707 BLAKE2B 9f01591b39de0a775e0701c28b871edac2b276fe41e67ac32d292b3557f785ae64a19f353084bbd605c8007b3d96427096b5e0f7cda7e424bcd255e2710836f9 SHA512 6987e3938b1f770f8432252513aa1b4939ec812ca3a04e948c71e0e14b47161a4a33197642b019532df397cf93a1cbb9ca914bb42bccca5921e8f730d11b7f13 -AUX tensorflow-2.15.0-0012-installation-remove-cp_local_config_python.patch 2827 BLAKE2B 14a53544198c8c60100637a1e6ceb31761ac0af1cb5bd8e70764df4a81d56d7e35e3a979b9cd81bc993ec675816b4a41f0562c166a632baf923716b73d20c71a SHA512 1baa6c8b859a1656b30c087fed99491c21720c1fe4489dd042c5c59a035196cfb0e57ce8e77212bdda54fba57b8f4166d3cad27eac1202c2d774e00e4ba427ce -AUX tensorflow-2.15.0-0013-build-use-non-hermetic-python.patch 33037 BLAKE2B b7414b59bdad9f6b0f692d9a01963d4584c8c14efcf6c45752b4964354cf77f11f276c8d702f85ca1643521a1d1a7e14531c120cd86515231adb56830eadee39 SHA512 d24ba33f16da1b742396667bd2afe997322ef30e32275b246d55a5cf5ad885ae036adba4990852de233029e2c757de6619060decbc5676317f13c5f5e8026624 -DIST ARM_NEON_2_x86_SSE-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz 103972 BLAKE2B 77d843aae7d471f7bb916caa40f66ec66322c11bab18ac338360c1a1faeb51a54fb394a35bee7ad3095ba34835e51441416d0c09ecc627769d9181678494eada SHA512 1d9a4192baf05be8cd36ffa55b9bf97e09ab6f714b303bd2ca7b16bbffbb661475c11b130437cafe234fce66d046d7b041f7daf9c25263c5921584412a5c1c12 -DIST FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip 91462 BLAKE2B dc40d6129c009fc28b40d58b81b89e96a2deeeda3ea19c680b66073f02f955cc5dfc379d7843ec8aeed9fedeae6a70594b45752014526deee5c6226ec4b952e9 SHA512 15ae434977209a938739691eb91150556bac75a4a5449a9b4f135424f42beabd67ede4cf12c3a5594dea5028cc4aadaf989d0b42c2bb6f741db55ebd34717e24 -DIST FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip 16646 BLAKE2B 8f6ca6feee16cb57d9b4504e7615703c2c7ea86fa8ea3f814668478cc13b8cb3cb1429200359be5521ca11f77e1c3d575b2222d123d3ac03586faab88a131ac2 SHA512 6b4830a56137e226d51ba8166fe1a31c51256f1666cc0a683abfb154fbe313d415ce15e362756865a1dd91510cf581c619604b29e8a5288c328c85da57d53308 -DIST Implib.so-5fb84c2a750434b9df1da67d67b749eb929598f1.tar.gz 27694 BLAKE2B 6c3339a98dbf36a77290c1b58da3005cfbf358d9f7759d6fba9047a82d7d240e5c7168d1a172447770559e1cd4ad37aaae6c4e884896ecbc636740d24bf2137a SHA512 694c392754f3b483176515096f98add0cb453c6c36d729ac8609c35fc3d6f01e2982b01c20bb1c5a2ed0776559aca5b8e86967d1984a16678ba047475c21f3d6 -DIST OouraFFT-v1.0.tar.gz 110531 BLAKE2B de0e280407e21118e2bc6ca93a7caf3c4a49d0a13eda018b1497f98851af73dda4cef56460dba310336c7ed958e34feef4784ca2575a13287dec2c1ac9a5af6d SHA512 89c6e8fd57abf26351b3efb792008a1bbe62d404a4225dcae8aa666b3782a421be071bdc9760ebb0c95b5336ee5ea517d2fa43ab915045f7cf6fd76e73578079 -DIST XNNPACK-bbbaa7352a3ea729987d3e654d37be93e8009691.zip 26938397 BLAKE2B fa8b24435529958833bae368d554a6a71c04bad96a53c26b8f247c1dff2ffcccd0b5382a6b9ae07da111f3f071fc4a96ea28abf5f5a09e3f3099ab032bcc92b3 SHA512 b542c6850c6698f2d46cd2a7a6de4b18f14558a9720c5b169fa9898c5cff5b499005adc767962fcf2a38b4f06b5eb038e4c1fecee0eac0524dde23aafe55ee15 -DIST apple_support.1.6.0.tar.gz 66375 BLAKE2B 7106e02676861b6ae4b0b42a12fb1fcde0470a99b49088beceabca87743430d6f691688aac5d4cf27e4c4e941781ee9d899fc7c3219095c00bbfe5b6eddafeb5 SHA512 e1d7a119d685fcfd9af1b9b48bb5685743af2d66e86d109575853172c1d9d7c1ce1beaa3fe65d21b55943d243506cdccadc724c603adc5566293b0c0846f874d -DIST bazel-skylib-1.3.0.tar.gz 36103 BLAKE2B a58142b9d2a5da9f137705105aa735c8489519989ca7e633968114309f23074a56cd03b5fed70e284da63751d666904c2573940ad9a0feb2be689d695f0f07ae SHA512 ab3a0b465ebbfe07c139b92f1e8b2c0bcede66d6366d184891e3c0ccd6619164bc299777e7d7236cb463834b98426f6fb6890409e0ce94b75446dbd85854944f -DIST bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz 80728 BLAKE2B 340a295d8998d01eba6bdd3a97efae869c5dde93dee9bd9266af8ad92a00a5c84cafbc6dd1f5d20f78dfdaa59f7585cefc7af4b87df712489db7f76bfa1d5210 SHA512 cf391a756d2520c65423f991bd0afdf3aed1785b91481c55c5d3182e54b137fc7922fd179e758af2868e11f9f10ce9903409015a2fb0f18e67d14a3b073c6d72 -DIST bazelbuild-platforms-0.0.6.tar.gz 5537 BLAKE2B 0712516f5ea0683054c1127a173a6af933278130c36eb0bf96cbc7a30050f551608bc2ea5451aec2d4b91dc117e16b21a78a1cc289064ac4ffd2adfb698208fe SHA512 372a722ebe04a1f13c348d37e3994450647762f3366bb6982ed6c6b4703684bc7960643cab2f6b51d5112086c7864f4d6b1c586de275c2353dbf1c9ed1a3e5d0 -DIST bazelbuild-rules_android-v0.1.1.zip 14654 BLAKE2B 1cfd5af08c6eab9602883f62d85ef1b9eb02383f73dcc31ae84af880c9ba228ae349ac6b017c550286e248347193e2c56eba30c86174432429809447dd940ed2 SHA512 80628a5e2ca9806ab031cd0c2f2999bd67f5621a83e8300a51fe6233373bdaf7c90ff8fa9551c81e60fc904c4d7b24554327ac8ed2ee101e92c4ab9319c53f4a -DIST bazelbuild-rules_cc-081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz 130803 BLAKE2B 406331205e8e35fc9f7f727f6f7f9697c658af800e4b90373440c433ec5cfedfe0a3986ce5b1499a2db5b7aa4dc62efac364e73639b98864d2f63076e5b209e3 SHA512 2dc8f50c405cadf10d797117b51868fa22798c4ff7cc1c4f7d4c39fa0d2e5ffbfe8269df42f90c92e0870bb8e8a9c204d3dea237a7ded03f6275657060ee9774 -DIST bazelbuild-rules_closure-308b05b2419edb5c8ee0471b67a40403df940149.tar.gz 464906 BLAKE2B 033d76b8081f4f987e64875ad5c8e7b8f894ec6be58c52ee02c4d31d4480fee02f3f432ea9c4630ad3f5d1163f820aff37f6493da797ec51b148b361ab3c8b25 SHA512 2cd841f4530503ed31fa6425cb749ef29f8a1071b5d55594644303233e58455783cb02402bc23d7104ef036745733087d43075a1fcdab2ac96cd1a9872a6ea4a -DIST bazelbuild-rules_docker-v0.10.0.tar.gz 549649 BLAKE2B e7a537b21138a5c5d9ce360e46238f57c917d2dbf5dd17887607402227cbe7c5d68aead9db0ecdb74c09eed9dac26eb86e004a9020c251152d15beb48be0e0d7 SHA512 7802107f8520c88646728800637cce54dbcefc54aa4361288a5b46e403e41998bc23e16fbe94f23a2ca52e5c33fc255af65846963c2fd0139ca1195435ce1b03 -DIST bazelbuild-rules_foreign_cc-0.7.1.tar.gz 215296 BLAKE2B fec096138fbe0662bbaa566d1f9ba36f60ac14499019dec060d1cbe21b09fe11cbf9fa72dd45884d9c14dd5cfc0a41087634ddeeadafe1ed37992e965b362513 SHA512 cca6c685f566b113148b94a02c5a976ec585e7e1794d18c607983801ddb3985d5031aa76501b095d79420ac5852d8c27812f005aaf2db43ba885892c51e7fd0d -DIST bazelbuild-rules_java-5.5.1.tar.gz 21057 BLAKE2B c9caf7019b8377d204adfafa45bc6c274177709ac2e2e387895dc186d035bdf0f22663c498b3d393dd947ad078b149774d0688bf82ebd3db6163f57b5c2141c5 SHA512 71fc4b2990cac3e8d4205fc847df22e480d33a2411dd969d779d0c3ee66ed6bd4f3a06e396d0df500442c942551cc69cdc5288eac4841f2badd99f44b61447b9 -DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c -DIST bazelbuild-rules_jvm_external-4.3.zip 3998031 BLAKE2B e13022ad12c5cd1901d7dd3f1cccfd8ad04e0cf8f12b7329b9a1ed49b7ae7aca6c08704c5229427fa6a5b1f16e9c50e1a61f9adbe75c8a7ab69a291d8b2c2914 SHA512 a23bb25fdf7a5f5916bf5a4576c6c06ae2de92a6b9d8d52720ed12e61ee766f665652acdf84f9814acfd90baefab0941d3244a011f341185a378b053a51f21f3 -DIST bazelbuild-rules_pkg-0.7.1.tar.gz 77334 BLAKE2B fef99181792dac840724d0cfe4f1d71ae77e16e9da0b2f938752e6971b04264bfb7d731998998b5637da774b5e67adb68cc7eb3c4f38a3933ef62f949d56553d SHA512 5b47922e9b60bf82ded612bf023d66d2c6786cc81abe6bc1653aa93400e3497acc2d92d5ff90f9f4ff757143ea0d66c1f8c8eea4059142889f9eb0d9073d9a80 -DIST bazelbuild-rules_proto-11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz 14304 BLAKE2B cdd23ef47d247f6d1b9fbaa49edbda7e1cd55ad2e3616f43ff8d21fa42888c1f36172683e47beb3f3678a2b252d9b6c82fd692711e3133862eade8b64da06ea1 SHA512 024021816b4999b62db41709e0e9354ffdc88beb61a081b061d934241f06b1aa5be3b74324cbec94d1871e60eb65209b2e6b4bb8ca4a101218eaf6196ec6a974 -DIST bazelbuild-rules_python-0.1.0.tar.gz 2490176 BLAKE2B dfb4df19ba787c3cb2c2b0ab7115b9678b64ba03b61b60af0253031333aef2ac37942e425ff724e3e759e5198e8ff45b55866a20f7b497f5735adb9f8deb1e72 SHA512 b83b35f5b200f115d9d5e89b2c81745dd834155f52be0ad2972007d4654ae9438f24c7bea3c9122e6056924a69b348ec3c53d649e092dbe5ae8af3b2119bbc5e -DIST bazelbuild-rules_swift.1.5.0.tar.gz 206209 BLAKE2B 3d0289129ec42e12cf17dcac0f633cd043d9f758fc7c73ff2acd27a9c8c1a0ac6a5b29270599121215f10bc024a5cc52612b3448499a074dd4ec1b79c827e8d3 SHA512 b3699a9f05b73c3fd79c956eefac367e8d6b0ce43c410e87d8e5e67f9b4d5c6632d701a64a09357e67abda9c810a9293f3a7b85213fa7995c57fdf5ce9b3a9e9 -DIST benchmark-f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz 204856 BLAKE2B a1601a38e71e08490f42e85e87675b2451082c531e2712f7e78ac0267c7fab0b6f1ac96fde34933d82380c61097a4467b277790657695fa51c97ac9504435959 SHA512 e4323f2e7b05566e7b634cc1ec18ae64c7cee1bf4ecdb2a3da97dec8393b1ef26580975e7823d4ee9d51d151db6456bc685717836eb3209574ada22a07451063 -DIST brotli-3914999fcc1fda92e750ef9190aa6db9bf7bdb07.zip 592501 BLAKE2B 47ddd728b35eac1b8c4ecc7a198b2dd1270a44b18b437988ccc7f05041135c0d42aa0afebe88b07cd1f26cc1363877b11327f4ed09340268304620725e1c0586 SHA512 d68afb576e5ed1239f2a3b0f2f9434dc95b650ae51ab3296075db871bc1f6b75febb07d8b6934e5acafb9baab2bafb6fb3916415241e130f95d0f28ec8768279 -DIST cub-1.9.9.zip 619595 BLAKE2B 265b797a906b03da886de88863236c9ab90daa31498ddf848fcaf5e5ee1342614ad9a41618120ca09cc4c0da3e96eeec5e20ca9d7ba3f9860c507f06d15e59e1 SHA512 8c9c0a3f66f8d518ec07f857b5625e006d52f28bade1c1478a0f37420e2f7586dc3ff029d551748a1802bb5544b16fde5388e8d5a45d61eec595201b9db7a30d -DIST cudnn-frontend-v0.9.zip 20077185 BLAKE2B fcd9425be4c2ecc39db0fd92be355a7767b3d00cea990ff4b63ade3dff957f97a6e5fdb1e6f287f6473b2212a66e160940328062a70485c38d5619cf3cc2eb54 SHA512 f38fc912303f4f61ae76d3159ac51b105aba0f728e895b850a164480a729ec144bd8f99764db3e2203210dc114662aba4b4ffe0435d027c0cf620cb42a50df64 -DIST dlpack-9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz 76170 BLAKE2B c28873deab233d73996137c254acecc4adb0a750cee675cfd0777ccdfa91ea704e338e7166705d47e775c45b46b152834268d89c0443a08c57b4b830bd07ac71 SHA512 e6a4fe9356b8f75f96e7f9960df40e227f8e5242e609f8cc8bf28e8161bd4f58e8c6de374d9cf216edf7e0e09ca502bc158d41c3058bc6e6e7b2bbfb9c5483ff -DIST ducc-3d28aadfd8bb0219e3df188613dbbcdfffccc3cd.tar.gz 402963 BLAKE2B e178b7358e95643f118cdc210e2a33fb66b4e436636171e292f609d01b4559c9c508c2b07a3bd8008ccdc29f0b442d7a41bf47aa31ba6d4c8edef66aebd80810 SHA512 364d39cb0777e1ced0e5d778d1249bdf95dd75f437df45e0b585c11b0327169eb1c4bcc07dfc99dd1d517dd9b939ee1fa74485bbd231dc128e41850211d534a6 -DIST eigen-66e8f38891841bf88ee976a316c0c78a52f0cee5.tar.gz 2856636 BLAKE2B 64ce221dd6b77790bb5f2b21006163314c88d18596c4394db5186a741da5c74064f24acb2fb1b8bdfada464a70cd3abe25bcfed904248f509980d7c10f0f8162 SHA512 d54d8bbd92677fe1e8109f6fc9d35dc8e8b6efa8060c6c88bf1f84c40dff36823de0901d6eefbb29468401d6038e4dece1e1de8fce36f4185dfff81b095ead7e -DIST farmhash-0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz 467251 BLAKE2B 74fd0cf3de41a6db0aac74148f795335df58b5a3bdd370b22ae0763aba5a4952dcd0133ed300350636a4678ff54a5c59eedee749dfcef7283e21c181b88f92cb SHA512 7bc14931e488464c1cedbc17551fb90a8cec494d0e0860db9df8efff09000fd8d91e01060dd5c5149b1104ac4ac8bf7eb57e5b156b05ef42636938edad1518f1 -DIST gemmlowp-e844ffd17118c1e17d94e1ba4354c075a4577b88.zip 940590 BLAKE2B 72e8ef48e6c20d3f3510eb3a891748df386f3ac127e79cd5c594b7289826294e29be5987632800898d94d6ded9016e398672fbdabd07af8f55d458540e66ec7b SHA512 b5683bd6e1cb942d0e1e07c3bd28d83d74706c45a33b59896124f659f361bb4f93181d3ccd282d9dd61df49695b38470f138ffd2c88b6d11fe160a0266d3909a -DIST googleapis-6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz 6091152 BLAKE2B 7d846fa18bdaf2ea12c1a064d6bf5a221f02b4398821032faf679dc41778f1ad13f0631a88baee127dfcfea40d3aed75f6bf1253ba800b25a4ea7b067044596e SHA512 7d098723547835c6646b776c764e85a226c23cab1709b7d4a780f60a3193630bb9301c0153382175fb4ddab876d1168d98a325f14bdc8500c02f6723fe7c7ab3 -DIST highwayhash-c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz 160745 BLAKE2B f2ffe8f13b1a8346b5b29e719c0a57f34e1fa6320d0f2d0575e4e97e813ed1a8f55acfb44b57aba70ea7d372ade18aee5ef82a881ecf457f580ffc92d6528c7b SHA512 4d6a7e8e321df82c009a0849b8da097a551f6c35a49fef65b89e731075a6af624918c0e55be9fd3a5bf07c519ab09bdefed57e0e39d4df0e79e189c468939de7 -DIST kissfft-131.1.0.tar.gz 52383 BLAKE2B 74e6d2e7d132a311b31c28a468e13d9772a53f0ea0abed0e0f49d8db9c183fb0646f58fd38df3e797b8577285899daf6b80446b149ce2582bb828410656d96df SHA512 bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708 -DIST llvm-project-49cb1595c1b3ae1de3684fea6148363c15bae12a.tar.gz 198655180 BLAKE2B d29cc1ea0045ce9d05ebd2716389be01d1651ee84b401e9f0625c964134d835c3079eb83b8de26f0f5cb617bd857412a07514bdab1d90e9208e5371c04c3ab76 SHA512 0150749286084fc7c6e7df7dc29aa8a56403da24cf6237a9a344b40216e55ad5f169d96a74ea3021d0987593ddef4822877332c55bd4c6a467a3a098b81abdad -DIST llvmorg-10.0.1-openmp-10.0.1.src.tar.xz 955492 BLAKE2B 4197ecfb2e3498a95a2ba5923f2b4bdafbab645ddf2d3f1875d39752d3ab7304fb35bce918d2dc6e40e5ea809545ae0907d6bc0b94a3d68b8d96da48f5a62adc SHA512 5b6f6487feaabd2a18ef2bbb1a5f86bb567e264f9fdf56805cfdd3f65f36f21e7c1392ba5170fafb52a395fc1606b277233beba3df31dc2ab825ef8924e7a05a -DIST ml_dtypes-2ca30a2b3c0744625ae3d6988f5596740080bbd0.tar.gz 69192 BLAKE2B 74fcbdbc5d788a12e01bbeaaf17a493f10b40be2724751a2b04bd877ba202a20e194ddf0d0161235eca233222b4292a2465f1d712acc407e984d17d3268829e0 SHA512 4912e0e224e618280c9b908500f865ba92cfd99341fb100b784bebab0489b283a01d65b9a34ae7984e026a9a06864009400cbcbcdfeed975581d2e61b563a4e0 -DIST nvidia-nccl-v2.16.5-1.tar.gz 327261 BLAKE2B abeeb6a2d4b58647ecb17694d92f79e650d2f2ffbccf26682ab202e17a1b7d3c356fce26d9f6edffee0756d71887bba8a9d5c254ad433d3b4ae8babfe3294534 SHA512 fc13e83e2339921b732c02250e95614b21202c52461aa262489714af6d92117aa5c0647bb0dcc3394cd357d4b7e8a76fe4c3a3567ba4512c359f19e2ff41de4d -DIST oneDNN-v3.2.1.tar.gz 9186820 BLAKE2B f85cb1b410c3f57e098106ca13939c8c93c396e012b15a63c4f728ba75138a6f371db5fd182a54711479beca8f215578ea52d9c3d07be36647f6befb6c16746a SHA512 115819dc47fce5ef8fc7403f88e141743b360bc33243c90740d1b3871849ac379930d23e3e1d62d0abaaa3af5d2cdbd4218b80aa1be1edb09d0d949f7532a559 -DIST openxla-stablehlo-78f57e34a25367ef3192cd35da36b01c763f4ecf.zip 17845568 BLAKE2B d745a8c61c78bea3b2cd2408fb1a93c2f47b5166b8b92515fb32e3f23c21a20d2278fbfe8a4b9bb3993f79884a1a914e7525f11c59b7e9c059b3bf71fc52282b SHA512 6c9a7f5e2dfe3323af7d6753740b25dd1075cd315edb9b2e9d65521df54fbcf62e9d8a16006e94fd64649b8c4fa7bf0fd6566504ee6b145fdf344b142f91503d -DIST openxla-triton-cl555471166.tar.gz 955143 BLAKE2B 00c4be9f2ba24d46a811f6d30b4972bc00a0d490f375f2156462699e64714667cb77d8ff34d2b78074f505d94dc737355f62c0de156b45e329fcdd8d19a69e12 SHA512 e2c56d48b8db852a93e194d2f29eeae89ef332d6a62a0ba208a5b0dbb4e78bfc06464dee53d653b22d0022b9169a7fcd5b9e8ce2ad3e4b3741d712ce98e25155 -DIST protobuf-3.21.9.zip 7156366 BLAKE2B 464ec84fd380d2d472cde5b7dd978c31ac8dc455934b7b1f7afe7dd836579ff74c1196d56dea2944fb41e5ef2f2e05683b889b54e4a3a11bb7cf87a0cd57f691 SHA512 311e0bcd3da54b8fb2df4de03a9b465cd56451018438e4d72054d78e70c37c70ee3c8a0378a177acb737ec863bdf9250d10bcbcdc0f97707c7edf97b9b37683b -DIST pthreadpool-4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip 72209 BLAKE2B 7fbbe569d8d08853c826212b487b8138b6361180444893b4975cd10abc391e26aeb6669db7d78ed39014803e59cbaff7b80140d01cfa46e8138fc3123ef3d54b SHA512 e951c12896543ebddb115dd4ddad539145cc30342ccdf71b83a568fb22f50e6ab5a7ab92309d02d9960f43c8ea9f690c95306924cac75fa9f4fc64a458e5ee10 -DIST pybind11_abseil-2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz 28202 BLAKE2B 58a13d005367d938e9fc17da6435a8c2706722d0770c173cbfc433b7ea4de7e7d1b97653c5859cc8c436cccda3b8d21df906249a3a60ee4bba7cc6601abfaa59 SHA512 91befca03fa1b4f12446b84d5fe3514df6c9e352a19042f4f8856f6df306229f23b6ca2976a17ab22c8dd5afa223a44013e54a4348298c305a7688646129f0a4 -DIST pybind11_bazel-72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz 8722 BLAKE2B 3f323e622fdd9921019cfdf4d281d54530b152efa557d2e57ed08bc8785fa419815c2a7e36c38de8d0c984f76d052607d4fbd409c4ede76cb9878823350dda2c SHA512 80fff0799119b535a95badb307408c7a81bad0261c0e753095732036d0801c4894318df736c6b1b3ca09201d3f5e4e971593a7d5e9df71c1cd588e4be3799c1f -DIST pybind11_protobuf-80f3440cd8fee124e077e2e47a8a17b78b451363.zip 76830 BLAKE2B 16b35eba4d9bcd345809e9acfc4c692a30d91ffa5319064e8d00a9d1382d6215ef2a73447ea54c8302610fa59d0b1a17add73f9fb0c86b2fae946614f1b70592 SHA512 f73fb217ff471143f473707576838ea85c5319edd09847d452cdaf66445f2abe303545208c44bf32856777d27323d7da9d76d2b148a16dc025c351b16fa2b279 -DIST pytorch-cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90.tar.gz 3512335 BLAKE2B 71c14866fde3846b5f375b39fe2f081a6c219b36fc0721640971f99c53ca77c8e7f8df83992d777af32a28c645d64f27dca838bd8e60835c5497e131467b22d0 SHA512 6a61f4574661a55771c2ec31bb0919a51d0bd8c770477b254a5c14dc5323716af275c7fe3abc5aa96720d7cc929559ca66f614265d3940e076b8db2fa15c8e36 -DIST pytorch-cpuinfo-959002f82d7962a473d8bf301845f2af720e0aa4.zip 3813452 BLAKE2B 71b895caefaae40693a815961ef6e660f1e9ebb0318d7147c9b79c6c884006cc624b8191b5dc814acb64162da0090e024052522e08239759d0eda1c992863d81 SHA512 53cc2f8e21c965f885d6798d113594c43b53a3d5db41c176f6c601169fc085f3ca647dc6aac93f9829881f4119bafccc6151109f281a892936a50144f87d1061 -DIST re2-03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz 396457 BLAKE2B 33b90f851c4a4ba634bcb907e8f32d21f6792e0fb680d38034d02f469e499380b0b458ad75fa42f1ad931cda314f7fb0ba0798ba085e176e5f2e38a67c8e14d7 SHA512 d573150b7a6d8fa3e970f0e245501d7653944fd406f2dc4016c7126c9602be988ba18d0c8b0296684dd30f4a3b9207284db5df4ef5f05e305160b845209f23d0 -DIST riegeli-264ef7b4a1314d97265b37544b27cd3923ea72d2.zip 1047649 BLAKE2B cb5f94ed39c5752ff21f5a042389a147ef83be6893130da79c412bbd1c29904bdcc6190f4ddbc883c166fa057b009aa6acd5d936ec9fd0c28c4f71c467431b6f SHA512 e41e65fefd9f4a5179f48f108f2839f6cdd75284b22bbd639a4bf9253c9217d0ea2d7935635b0e6f8f8a961dd4cb50817204e6745981b1d619e69d3665458fd2 -DIST rules_apple.2.3.0.tar.gz 2222651 BLAKE2B a0a0e153eaa16be0ace362c1738b3f5ff87a3e76bd6fbf65c7d76e68d33b40d99e86045cf0bb104644fbf076024dcee4082303b823e12cbce6675202d93c29d5 SHA512 e8f6c164451a28ad70a9fdabfc2540a0165de1d23e2bdb7ec06ddf2e455f55cf82b8024be0e88153fca44433ae84144cc4054974737c8f6374fc88de37338394 -DIST ruy-3286a34cc8de6149ac6844107dfdffac91531e72.zip 381045 BLAKE2B 00cf2a009ff6cac8e3e8c3380c3fdb4fe9299614eba56bfbf0b2b8dd908ec2ec7d58b8185810899dd8bac80cc990d69a26e01eed8562f73c5fc08b8b3ad198e0 SHA512 4acb4dcee41788c3f2a65a4335f64d20057980289f231a401ea45c27dcd16bc2e48d0748d6ad35e77c3212104c54353193d4710260993ae8927dce24a6ef435e -DIST sobol_data-835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz 2569603 BLAKE2B cd66dc8a0b4ad3ea586a79ef588c8d68e4f05b6ea89e6d8119b5ee338b9046c11a747ca57c2f80a3c90fab119c05e85f5965571c9e522ccb8a312b95804d1a36 SHA512 b819d050bb38246b503f1eb3d6e7d878d0f166f3602ae3c327749b1f6ddc2b1d6ac7f768b1f1d055b98b7b98812e4643a75bcebc9728c7f615d67ca739761b3e -DIST tensorflow-1.15.0-python-license.rst.txt 45132 BLAKE2B 8a8ace4b64fd9eda1932272704dd4fea002d2562cd9c2c94470d3ff5de58bb171ff849d3f998ea90cd779d1084d39af1267aca8400b74b701205d2e76e6a2628 SHA512 c79c42f4ceecf33c8f8778ca17b53595b75d5d0bdf30b11058cf01dd70a6351f530ca9dd846460aba14edc1d5876f7bf6fa0f9f49f7915590b0f54d267ce3856 -DIST tensorflow-2.15.0.tar.gz 73544567 BLAKE2B fe528a8ec2ad7f75ee4fcaf0febc673fc743835fe6a27561efb3e55fcc6cf4b22220acea38b82318766b3f0d640b8d539628f6062af0ce5bb9e36b1e9ad1e629 SHA512 51976c7255ffbdb98fe67a28f6ae1c3b9a073e49fe6b44187a53d99654e4af753de53bfa7229cdd1997ac71e8ddecbc15e4759d46c6d24b55eb84c5d31523dfe -DIST tensorflow-runtime-70637966e2ec9afccc2cf4d51ed2391172b1b9c5.tar.gz 3925477 BLAKE2B 9a34c431e98d3d6d10a880bfcd70397ed7e63e4ecc0669c1f75a6c15d3c143ab21245d2454031ac0abd67f56b675f7435e8ce7dc934500d506f4b0d5c2a81ecc SHA512 ec7189bdf04c7a54ea2b0e232b311a375eedc7a172cfe72935494faa71947408bedfa0e5160ce1ad9c14e120e64b1cc2d10c9714063179c4e73f867c3b236160 -DIST zstd-v1.4.5.zip 2261522 BLAKE2B 0fdd2bc47d39af48445868e8ad0dc1bb06d377422c0743924cc309b9772a6964bf5a0d40380fffdd84d37ff114a371d283ca1eacd02c505380ba757462cf87d2 SHA512 7ab1f4ce57d89ea4848227173fe7600b1b4378717b1460e46d2c862531fa717344c0e52fc498f925646ea621b7209326e73f88885839191aa9a7c6c2896d9091 -EBUILD tensorflow-2.15.0.ebuild 20328 BLAKE2B 9d89c1ec5796268e996fff8ab1ceb6a4d8d02707906db8db43401cb1eb54dd75c56b9c5f66c46fed57a72fbe07db16fa6b469cc23c41f626fdffa4b16e6aac30 SHA512 6289c96607986ba72c56e31d55795beded6ef28a9aa4303754c97e9d3f7848b95f28c4401c7afab7ee036895ce9117f50ae24dc96f9d03dc4e9caa483f458303 -MISC metadata.xml 504 BLAKE2B e0c7f8e0d4c1e632542e61c9d09a69119d56b7d0f6c2a289fa9fb074b055f2a9b238309b1cedbd30da97c85daad4a8d26b821337f2bdb7809cda7ab70a344aef SHA512 fee4f53ef507ae09e85d5792921a2ad822b9b106db9c67b55dff7337ceb095138cf6b1edc47c81f91b6fae981a979c3e9f46afbb7cae6f2987080e9651640a49 diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch deleted file mode 100644 index 0143ea01cab7..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch +++ /dev/null @@ -1,37 +0,0 @@ -From c49a30cc3e2d96cbe97a7012ef89800af7a0c5e0 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 24 Nov 2023 16:34:44 +0800 -Subject: [PATCH 01/13] WORKSPACE: add rules-docker http_archive, - bazel-toolchains uses git_repo - -git_repository() rules cannot pull from --distdir and fail when building -without internet access. Use http_archive instead and pin the sha256 -hash as well. ---- - WORKSPACE | 11 +++++++++++ - 1 file changed, 11 insertions(+) - -diff --git a/WORKSPACE b/WORKSPACE -index 6a85ffeb29a..c10a2c4a482 100644 ---- a/WORKSPACE -+++ b/WORKSPACE -@@ -1,5 +1,16 @@ - workspace(name = "org_tensorflow") - -+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -+ -+http_archive( -+ name = "io_bazel_rules_docker", -+ sha256 = "7d453450e1eb70e238eea6b31f4115607ec1200e91afea01c25f9804f37e39c8", -+ strip_prefix = "rules_docker-0.10.0", -+ urls = [ -+ "https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/rules_docker-v0.10.0.tar.gz", -+ ], -+) -+ - # We must initialize hermetic python first. - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch deleted file mode 100644 index d3f1471f6dff..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 79f6530e6beb5ca25fd07245f251897bf60c85e2 Mon Sep 17 00:00:00 2001 -From: Jason Zaman <jason@perfinion.com> -Date: Sun, 6 Feb 2022 00:13:56 -0800 -Subject: [PATCH 02/13] systemlib: Latest absl LTS has split cord libs - ---- - third_party/absl/system.absl.strings.BUILD | 9 ++++++++- - 1 file changed, 8 insertions(+), 1 deletion(-) - -diff --git a/third_party/absl/system.absl.strings.BUILD b/third_party/absl/system.absl.strings.BUILD -index fa9a7a84f67..63bac99d71b 100644 ---- a/third_party/absl/system.absl.strings.BUILD -+++ b/third_party/absl/system.absl.strings.BUILD -@@ -26,7 +26,14 @@ cc_library( - - cc_library( - name = "cord", -- linkopts = ["-labsl_cord"], -+ linkopts = [ -+ "-labsl_cord", -+ "-labsl_cord_internal", -+ "-labsl_cordz_functions", -+ "-labsl_cordz_handle", -+ "-labsl_cordz_info", -+ "-labsl_cordz_sample_token", -+ ], - deps = [ - ":str_format", - "//absl/container:compressed_tuple", --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch deleted file mode 100644 index 5ffab1f6c269..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 51b47cec16b0818d47086b629fb361f90cca284a Mon Sep 17 00:00:00 2001 -From: Jason Zaman <jason@perfinion.com> -Date: Mon, 5 Sep 2022 12:52:44 -0700 -Subject: [PATCH 03/13] mkl_dnn: Must link against libm for round and log2 - ---- - third_party/mkl_dnn/mkldnn_v1.BUILD | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/third_party/mkl_dnn/mkldnn_v1.BUILD b/third_party/mkl_dnn/mkldnn_v1.BUILD -index e25a66db664..4185df77f3d 100644 ---- a/third_party/mkl_dnn/mkldnn_v1.BUILD -+++ b/third_party/mkl_dnn/mkldnn_v1.BUILD -@@ -165,9 +165,9 @@ cc_library( - includes = _INCLUDES_LIST, - # TODO(penpornk): Use lrt_if_needed from tensorflow.bzl instead. - linkopts = select({ -- "@local_tsl//tsl:linux_aarch64": ["-lrt"], -- "@local_tsl//tsl:linux_x86_64": ["-lrt"], -- "@local_tsl//tsl:linux_ppc64le": ["-lrt"], -+ "@local_tsl//tsl:linux_aarch64": ["-lrt", "-lm"], -+ "@local_tsl//tsl:linux_x86_64": ["-lrt", "-lm"], -+ "@local_tsl//tsl:linux_ppc64le": ["-lrt", "-lm"], - "//conditions:default": [], - }), - textual_hdrs = _TEXTUAL_HDRS_LIST, --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0004-tensorflow_cc-Add-systemlib-nsync-linkopts.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0004-tensorflow_cc-Add-systemlib-nsync-linkopts.patch deleted file mode 100644 index d540ee2c03ce..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0004-tensorflow_cc-Add-systemlib-nsync-linkopts.patch +++ /dev/null @@ -1,35 +0,0 @@ -From e9d513bbb40004ff25a9809eb99e32958e8e3b82 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 24 Nov 2023 16:42:48 +0800 -Subject: [PATCH 04/13] tensorflow_cc: Add systemlib nsync linkopts - -Linkopts dont get propagated up to the shared library correctly so -workaround by applying them directly ---- - tensorflow/BUILD | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/tensorflow/BUILD b/tensorflow/BUILD -index f72931217b3..ffbe65fdc61 100644 ---- a/tensorflow/BUILD -+++ b/tensorflow/BUILD -@@ -6,6 +6,7 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") - load("@bazel_skylib//lib:selects.bzl", "selects") - load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "bool_setting") - load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") -+load("@local_config_syslibs//:build_defs.bzl", "if_system_lib") - load( - "//tensorflow:tensorflow.bzl", - "VERSION", -@@ -1324,7 +1325,7 @@ tf_cc_shared_library( - "-z defs", - "-Wl,--version-script,$(location //tensorflow:tf_version_script.lds)", - ], -- }), -+ }) + if_system_lib("nsync", ["-lnsync_cpp"]), - per_os_targets = True, - roots = [ - "//tensorflow/c:c_api", --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0005-systemlib-Updates-for-Abseil-20220623-LTS.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0005-systemlib-Updates-for-Abseil-20220623-LTS.patch deleted file mode 100644 index 520f4bcf9a68..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0005-systemlib-Updates-for-Abseil-20220623-LTS.patch +++ /dev/null @@ -1,71 +0,0 @@ -From b43d73336a9209717adb038ca1fe3a808d3ce36e Mon Sep 17 00:00:00 2001 -From: Jason Zaman <jason@perfinion.com> -Date: Tue, 30 May 2023 09:10:03 -0700 -Subject: [PATCH 05/13] systemlib: Updates for Abseil 20220623 LTS - -These targets are header-only and just need stub bazel targets ---- - third_party/absl/system.absl.functional.BUILD | 22 +++++++++++++++++++ - third_party/absl/system.absl.random.BUILD | 12 ++++++++++ - 2 files changed, 34 insertions(+) - -diff --git a/third_party/absl/system.absl.functional.BUILD b/third_party/absl/system.absl.functional.BUILD -index a4f70acf35c..579181dec07 100644 ---- a/third_party/absl/system.absl.functional.BUILD -+++ b/third_party/absl/system.absl.functional.BUILD -@@ -2,10 +2,32 @@ load("@rules_cc//cc:defs.bzl", "cc_library") - - package(default_visibility = ["//visibility:public"]) - -+cc_library( -+ name = "any_invocable", -+ deps = [ -+ "//absl/base:base_internal", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/meta:type_traits", -+ "//absl/utility", -+ ], -+) -+ - cc_library( - name = "bind_front", -+ deps = [ -+ "//absl/base:base_internal", -+ "//absl/container:compressed_tuple", -+ "//absl/meta:type_traits", -+ "//absl/utility", -+ ], - ) - - cc_library( - name = "function_ref", -+ deps = [ -+ "//absl/base:base_internal", -+ "//absl/base:core_headers", -+ "//absl/meta:type_traits", -+ ], - ) -diff --git a/third_party/absl/system.absl.random.BUILD b/third_party/absl/system.absl.random.BUILD -index 948de07751a..5ebd656be8e 100644 ---- a/third_party/absl/system.absl.random.BUILD -+++ b/third_party/absl/system.absl.random.BUILD -@@ -51,3 +51,15 @@ cc_library( - "//absl/types:span", - ], - ) -+ -+cc_library( -+ name = "bit_gen_ref", -+ deps = [ -+ ":random", -+ "//absl/base:core_headers", -+ "//absl/base:fast_type_id", -+ "//absl/meta:type_traits", -+ "//absl/random/internal:distribution_caller", -+ "//absl/random/internal:fast_uniform_bits", -+ ], -+) --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0006-systemlib-Update-targets-for-absl_py.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0006-systemlib-Update-targets-for-absl_py.patch deleted file mode 100644 index 79c9773e2b5a..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0006-systemlib-Update-targets-for-absl_py.patch +++ /dev/null @@ -1,24 +0,0 @@ -From d12cf2b464f129c8aeb513c34304c117e5384ffd Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 24 Nov 2023 16:48:15 +0800 -Subject: [PATCH 06/13] systemlib: Update targets for absl_py - ---- - third_party/systemlibs/absl_py.absl.flags.BUILD | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/third_party/systemlibs/absl_py.absl.flags.BUILD b/third_party/systemlibs/absl_py.absl.flags.BUILD -index d92f4949df1..614938fb8c4 100644 ---- a/third_party/systemlibs/absl_py.absl.flags.BUILD -+++ b/third_party/systemlibs/absl_py.absl.flags.BUILD -@@ -8,4 +8,7 @@ py_library( - - py_library( - name = "argparse_flags", -+ deps = [ -+ ":flags", -+ ], - ) --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0007-systemlib-Add-well_known_types_py_pb2-target.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0007-systemlib-Add-well_known_types_py_pb2-target.patch deleted file mode 100644 index 6a6c722da38f..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0007-systemlib-Add-well_known_types_py_pb2-target.patch +++ /dev/null @@ -1,28 +0,0 @@ -From e5c0870dda44361c1d3ffdf8a0adc549ba16444a Mon Sep 17 00:00:00 2001 -From: Jason Zaman <jason@perfinion.com> -Date: Sat, 3 Jun 2023 16:23:51 -0700 -Subject: [PATCH 07/13] systemlib: Add well_known_types_py_pb2 target - -Bug: https://github.com/tensorflow/tensorflow/issues/60667 ---- - third_party/systemlibs/protobuf.BUILD | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/third_party/systemlibs/protobuf.BUILD b/third_party/systemlibs/protobuf.BUILD -index 4d05ab28d12..b3d72b0e3ad 100644 ---- a/third_party/systemlibs/protobuf.BUILD -+++ b/third_party/systemlibs/protobuf.BUILD -@@ -111,3 +111,10 @@ py_library( - visibility = ["//visibility:public"], - deps = [dep + "_proto" for dep in proto[1][1]], - ) for proto in WELL_KNOWN_PROTO_MAP.items()] -+ -+py_proto_library( -+ name = "well_known_types_py_pb2", -+ include = ".", -+ srcs = [proto[1][0] for proto in WELL_KNOWN_PROTO_MAP.items()], -+ visibility = ["//visibility:public"], -+) --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0008-Relax-setup.py-version-requirements.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0008-Relax-setup.py-version-requirements.patch deleted file mode 100644 index 949805fd77e7..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0008-Relax-setup.py-version-requirements.patch +++ /dev/null @@ -1,86 +0,0 @@ -From fada9b72dc55a016cc702e50fd688a6e9d53793e Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 24 Nov 2023 16:54:18 +0800 -Subject: [PATCH 08/13] Relax setup.py version requirements - ---- - tensorflow/tools/pip_package/setup.py | 42 +++++++++++++-------------- - 1 file changed, 21 insertions(+), 21 deletions(-) - -diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py -index b416731380f..a21f566ee4d 100644 ---- a/tensorflow/tools/pip_package/setup.py -+++ b/tensorflow/tools/pip_package/setup.py -@@ -88,8 +88,8 @@ REQUIRED_PACKAGES = [ - 'gast >=0.2.1,!=0.5.0,!=0.5.1,!=0.5.2', - 'google_pasta >= 0.1.1', - 'h5py >= 2.9.0', -- 'libclang >= 13.0.0', -- 'ml_dtypes ~= 0.2.0', -+ # 'libclang >= 13.0.0', -+ 'ml_dtypes >= 0.2.0', - 'numpy >= 1.23.5, < 2.0.0', - 'opt_einsum >= 2.3.2', - 'packaging', -@@ -101,8 +101,8 @@ REQUIRED_PACKAGES = [ - 'six >= 1.12.0', - 'termcolor >= 1.1.0', - 'typing_extensions >= 3.6.6', -- 'wrapt >= 1.11.0, < 1.15', -- 'tensorflow-io-gcs-filesystem >= 0.23.1', -+ 'wrapt >= 1.11.0', -+ # 'tensorflow-io-gcs-filesystem >= 0.23.1', - # grpcio does not build correctly on big-endian machines due to lack of - # BoringSSL support. - # See https://github.com/tensorflow/tensorflow/issues/17882. -@@ -135,8 +135,8 @@ FAKE_REQUIRED_PACKAGES = [ - _VERSION + ';platform_system=="Windows"', - ] - --if platform.system() == 'Linux' and platform.machine() == 'x86_64': -- REQUIRED_PACKAGES.append(FAKE_REQUIRED_PACKAGES) -+# if platform.system() == 'Linux' and platform.machine() == 'x86_64': -+# REQUIRED_PACKAGES.append(FAKE_REQUIRED_PACKAGES) - - if collaborator_build: - # If this is a collaborator build, then build an "installer" wheel and -@@ -163,21 +163,21 @@ if collaborator_build: - EXTRA_PACKAGES = {} - EXTRA_PACKAGES['and-cuda'] = [ - # TODO(nluehr): set nvidia-* versions based on build components. -- 'nvidia-cublas-cu12 == 12.2.5.6', -- 'nvidia-cuda-cupti-cu12 == 12.2.142', -- 'nvidia-cuda-nvcc-cu12 == 12.2.140', -- 'nvidia-cuda-nvrtc-cu12 == 12.2.140', -- 'nvidia-cuda-runtime-cu12 == 12.2.140', -- 'nvidia-cudnn-cu12 == 8.9.4.25', -- 'nvidia-cufft-cu12 == 11.0.8.103', -- 'nvidia-curand-cu12 == 10.3.3.141', -- 'nvidia-cusolver-cu12 == 11.5.2.141', -- 'nvidia-cusparse-cu12 == 12.1.2.141', -- 'nvidia-nccl-cu12 == 2.16.5', -- 'nvidia-nvjitlink-cu12 == 12.2.140', -- 'tensorrt == 8.6.1.post1', -- 'tensorrt-bindings == 8.6.1', -- 'tensorrt-libs == 8.6.1', -+ 'nvidia-cublas-cu12 >= 12.2.5.6', -+ 'nvidia-cuda-cupti-cu12 >= 12.2.142', -+ 'nvidia-cuda-nvcc-cu12 >= 12.2.140', -+ 'nvidia-cuda-nvrtc-cu12 >= 12.2.140', -+ 'nvidia-cuda-runtime-cu12 >= 12.2.140', -+ 'nvidia-cudnn-cu12 >= 8.9.4.25', -+ 'nvidia-cufft-cu12 >= 11.0.8.103', -+ 'nvidia-curand-cu12 >= 10.3.3.141', -+ 'nvidia-cusolver-cu12 >= 11.5.2.141', -+ 'nvidia-cusparse-cu12 >= 12.1.2.141', -+ 'nvidia-nccl-cu12 >= 2.16.5', -+ 'nvidia-nvjitlink-cu12 >= 12.2.140', -+ 'tensorrt >= 8.6.1.post1', -+ 'tensorrt-bindings >= 8.6.1', -+ 'tensorrt-libs >= 8.6.1', - ] - - DOCLINES = __doc__.split('\n') --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0009-systemlib-update-targets-for-absl.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0009-systemlib-update-targets-for-absl.patch deleted file mode 100644 index 4cbce75b96de..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0009-systemlib-update-targets-for-absl.patch +++ /dev/null @@ -1,365 +0,0 @@ -From de3fc37567b3b135ee45c2ca8bd2256ea53812e8 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Sun, 26 Nov 2023 13:12:20 +0800 -Subject: [PATCH 09/13] systemlib: update targets for absl - ---- - .../compiler/mlir/tools/kernel_gen/BUILD | 1 + - .../distribute/experimental/rpc/kernels/BUILD | 1 + - third_party/absl/system.absl.debugging.BUILD | 20 +- - third_party/absl/system.absl.log.BUILD | 271 ++++++++++++++++++ - third_party/absl/workspace.bzl | 1 + - 5 files changed, 289 insertions(+), 5 deletions(-) - create mode 100644 third_party/absl/system.absl.log.BUILD - -diff --git a/tensorflow/compiler/mlir/tools/kernel_gen/BUILD b/tensorflow/compiler/mlir/tools/kernel_gen/BUILD -index e6ce181074d..ff3f65fb551 100644 ---- a/tensorflow/compiler/mlir/tools/kernel_gen/BUILD -+++ b/tensorflow/compiler/mlir/tools/kernel_gen/BUILD -@@ -107,6 +107,7 @@ tf_cc_binary( - "//tensorflow/compiler/mlir/tensorflow", - "//tensorflow/core:lib", - "@com_google_absl//absl/status", -+ "@com_google_absl//absl/log:check", - "@com_google_absl//absl/strings", - "@llvm-project//llvm:AArch64CodeGen", # fixdeps: keep - "@llvm-project//llvm:ARMCodeGen", # fixdeps: keep -diff --git a/tensorflow/distribute/experimental/rpc/kernels/BUILD b/tensorflow/distribute/experimental/rpc/kernels/BUILD -index 60fa55c7702..6527914c51d 100644 ---- a/tensorflow/distribute/experimental/rpc/kernels/BUILD -+++ b/tensorflow/distribute/experimental/rpc/kernels/BUILD -@@ -64,6 +64,7 @@ tf_kernel_library( - "//tensorflow/distribute/experimental/rpc/proto:tf_rpc_service_proto_cc", - "@com_github_grpc_grpc//:grpc++", - "@com_google_absl//absl/status", -+ "@com_google_absl//absl/log:check", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/strings:str_format", - "@local_xla//xla/stream_executor/platform", -diff --git a/third_party/absl/system.absl.debugging.BUILD b/third_party/absl/system.absl.debugging.BUILD -index 931ffdc9e92..223db7b4c46 100644 ---- a/third_party/absl/system.absl.debugging.BUILD -+++ b/third_party/absl/system.absl.debugging.BUILD -@@ -26,15 +26,25 @@ cc_library( - - cc_library( - name = "failure_signal_handler", -- linkopts = [ -- "-labsl_failure_signal_handler", -- "-labsl_examine_stack", -+ linkopts = ["-labsl_failure_signal_handler"], -+ deps = [ -+ ":examine_stack", -+ ":stacktrace", -+ "//absl/base", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/base:raw_logging_internal", - ], -+) -+ -+cc_library( -+ name = "examine_stack", -+ linkopts = ["-labsl_examine_stack"], - deps = [ - ":stacktrace", - ":symbolize", -- "//absl/base", -- "//absl/base:errno_saver", -+ "//absl/base:config", -+ "//absl/base:core_headers", - "//absl/base:raw_logging_internal", - ], - ) -diff --git a/third_party/absl/system.absl.log.BUILD b/third_party/absl/system.absl.log.BUILD -new file mode 100644 -index 00000000000..9a2a5de657e ---- /dev/null -+++ b/third_party/absl/system.absl.log.BUILD -@@ -0,0 +1,271 @@ -+load("@rules_cc//cc:defs.bzl", "cc_library") -+ -+package(default_visibility = ["//visibility:public"]) -+ -+cc_library( -+ name = "log", -+ deps = [ -+ "//absl/log:internal_log_impl", -+ ], -+) -+ -+cc_library( -+ name = "internal_log_impl", -+ deps = [ -+ ":internal_conditions", -+ ":internal_message", -+ ":internal_strip", -+ ], -+) -+ -+cc_library( -+ name = "internal_conditions", -+ linkopts = ["-labsl_log_internal_conditions"], -+ deps = [ -+ ":internal_voidify", -+ "//absl/base", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ ], -+) -+ -+cc_library( -+ name = "internal_voidify", -+ deps = ["//absl/base:config"], -+) -+ -+cc_library( -+ name = "internal_message", -+ linkopts = ["-labsl_log_internal_message"], -+ deps = [ -+ ":entry", -+ ":globals", -+ ":internal_append_truncated", -+ ":internal_format", -+ ":internal_globals", -+ ":internal_log_sink_set", -+ ":internal_nullguard", -+ ":internal_proto", -+ ":severity", -+ ":sink", -+ ":sink_registry", -+ "//absl/base", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/base:errno_saver", -+ "//absl/base:raw_logging_internal", -+ "//absl/base:strerror", -+ "//absl/container:inlined_vector", -+ "//absl/debugging:examine_stack", -+ "//absl/memory", -+ "//absl/strings", -+ "//absl/time", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "internal_append_truncated", -+ deps = [ -+ "//absl/base:config", -+ "//absl/strings", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "internal_format", -+ linkopts = ["-labsl_log_internal_format"], -+ deps = [ -+ ":internal_append_truncated", -+ ":internal_config", -+ ":internal_globals", -+ ":severity", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/strings", -+ "//absl/strings:str_format", -+ "//absl/time", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "internal_globals", -+ linkopts = ["-labsl_log_internal_globals"], -+ deps = [ -+ ":severity", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/base:raw_logging_internal", -+ "//absl/strings", -+ "//absl/time", -+ ], -+) -+ -+cc_library( -+ name = "internal_proto", -+ linkopts = ["-labsl_log_internal_proto"], -+ deps = [ -+ "//absl/base", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/strings", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "internal_log_sink_set", -+ linkopts = ["-labsl_log_internal_log_sink_set"], -+ deps = [ -+ ":entry", -+ ":globals", -+ ":internal_config", -+ ":internal_globals", -+ ":severity", -+ ":sink", -+ "//absl/base", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/base:raw_logging_internal", -+ "//absl/cleanup", -+ "//absl/strings", -+ "//absl/synchronization", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "internal_config", -+ deps = [ -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ ], -+) -+ -+cc_library( -+ name = "internal_nullguard", -+ linkopts = ["-labsl_log_internal_nullguard"], -+ deps = [ -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ ], -+) -+ -+cc_library( -+ name = "globals", -+ linkopts = ["-labsl_log_globals"], -+ deps = [ -+ ":severity", -+ "//absl/base:atomic_hook", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/base:raw_logging_internal", -+ "//absl/hash", -+ "//absl/strings", -+ ], -+) -+ -+cc_library( -+ name = "entry", -+ linkopts = ["-labsl_log_entry"], -+ deps = [ -+ ":internal_config", -+ ":severity", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/strings", -+ "//absl/time", -+ "//absl/types:span", -+ ], -+) -+ -+cc_library( -+ name = "severity", -+ linkopts = ["-labsl_log_severity"], -+ deps = ["//absl/base:core_headers"], -+) -+ -+cc_library( -+ name = "sink", -+ linkopts = ["-labsl_log_sink"], -+ deps = [ -+ ":entry", -+ "//absl/base:config", -+ ], -+) -+ -+cc_library( -+ name = "sink_registry", -+ deps = [ -+ ":internal_log_sink_set", -+ ":sink", -+ "//absl/base:config", -+ ], -+) -+ -+cc_library( -+ name = "internal_strip", -+ deps = [ -+ ":internal_message", -+ ":internal_nullstream", -+ ":severity", -+ ], -+) -+ -+cc_library( -+ name = "internal_nullstream", -+ deps = [ -+ ":severity", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/strings", -+ ], -+) -+ -+cc_library( -+ name = "check", -+ deps = [ -+ ":internal_check_impl", -+ ":internal_check_op", -+ ":internal_conditions", -+ ":internal_message", -+ ":internal_strip", -+ "//absl/base:core_headers", -+ ], -+) -+ -+cc_library( -+ name = "internal_check_impl", -+ deps = [ -+ ":internal_check_op", -+ ":internal_conditions", -+ ":internal_message", -+ ":internal_strip", -+ "//absl/base:core_headers", -+ ], -+) -+ -+cc_library( -+ name = "internal_check_op", -+ linkopts = ["-labsl_log_internal_check_op"], -+ deps = [ -+ ":internal_nullguard", -+ ":internal_nullstream", -+ ":internal_strip", -+ "//absl/base:config", -+ "//absl/base:core_headers", -+ "//absl/strings", -+ ], -+) -+ -+cc_library( -+ name = "absl_check", -+ deps = [":internal_check_impl"], -+) -+ -+cc_library( -+ name = "absl_log", -+ deps = [":internal_log_impl"], -+) -diff --git a/third_party/absl/workspace.bzl b/third_party/absl/workspace.bzl -index 07f49cebb78..a7f4e5ffc44 100644 ---- a/third_party/absl/workspace.bzl -+++ b/third_party/absl/workspace.bzl -@@ -20,6 +20,7 @@ def repo(): - "flags", - "functional", - "hash", -+ "log", - "memory", - "meta", - "numeric", --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0010-systemlib-fix-missing-osx-in-pybind11.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0010-systemlib-fix-missing-osx-in-pybind11.patch deleted file mode 100644 index 4e77e14577d1..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0010-systemlib-fix-missing-osx-in-pybind11.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0c2e7e4e987aea6759e66f49b471b89d1cc01269 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Thu, 21 Dec 2023 22:22:35 +0800 -Subject: [PATCH 10/13] systemlib: fix missing `:osx` in pybind11 - ---- - third_party/systemlibs/pybind11.BUILD | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/third_party/systemlibs/pybind11.BUILD b/third_party/systemlibs/pybind11.BUILD -index 79a483d7b5d..cda63fbd019 100644 ---- a/third_party/systemlibs/pybind11.BUILD -+++ b/third_party/systemlibs/pybind11.BUILD -@@ -6,3 +6,8 @@ cc_library( - "@org_tensorflow//third_party/python_runtime:headers", - ], - ) -+ -+config_setting( -+ name = "osx", -+ constraint_values = ["@platforms//os:osx"], -+) --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0011-systemlib-fix-missing-LICENSE-in-flatbuffers.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0011-systemlib-fix-missing-LICENSE-in-flatbuffers.patch deleted file mode 100644 index ec6e9ef3e36f..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0011-systemlib-fix-missing-LICENSE-in-flatbuffers.patch +++ /dev/null @@ -1,25 +0,0 @@ -From c582286b732a820b29f1c03e2fa2c4aa61a4af03 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Thu, 21 Dec 2023 22:24:24 +0800 -Subject: [PATCH 11/13] systemlib: fix missing `LICENSE` in flatbuffers - ---- - third_party/flatbuffers/BUILD.system | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/third_party/flatbuffers/BUILD.system b/third_party/flatbuffers/BUILD.system -index 8fe4d7a5907..b1d63b4ca0f 100644 ---- a/third_party/flatbuffers/BUILD.system -+++ b/third_party/flatbuffers/BUILD.system -@@ -1,7 +1,7 @@ - licenses(["notice"]) # Apache 2.0 - - filegroup( -- name = "LICENSE.txt", -+ name = "LICENSE", - visibility = ["//visibility:public"], - ) - --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0012-installation-remove-cp_local_config_python.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0012-installation-remove-cp_local_config_python.patch deleted file mode 100644 index e78efd2e9944..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0012-installation-remove-cp_local_config_python.patch +++ /dev/null @@ -1,68 +0,0 @@ -From 90ad87a2d71522412ec80f7f7025d828354a6e20 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 22 Dec 2023 20:25:52 +0800 -Subject: [PATCH 12/13] installation: remove `cp_local_config_python` - -Revert https://github.com/tensorflow/tensorflow/commit/a034b3d48a9d3dbccff22800ab4b435a89f45103 ---- - .../tools/pip_package/build_pip_package.sh | 25 ------------------- - 1 file changed, 25 deletions(-) - -diff --git a/tensorflow/tools/pip_package/build_pip_package.sh b/tensorflow/tools/pip_package/build_pip_package.sh -index 423a79bff78..d8ae485803c 100755 ---- a/tensorflow/tools/pip_package/build_pip_package.sh -+++ b/tensorflow/tools/pip_package/build_pip_package.sh -@@ -47,22 +47,6 @@ function cp_external() { - cp "${src_dir}/local_config_cuda/cuda/cuda/cuda_config.h" "${dest_dir}/local_config_cuda/cuda/cuda/" - } - --function cp_local_config_python() { -- local src_dir=$1 -- local dest_dir=$2 -- pushd . -- cd "$src_dir" -- mkdir -p "${dest_dir}/local_config_python/numpy_include/" -- cp -r "pypi_numpy/site-packages/numpy/core/include/numpy" "${dest_dir}/local_config_python/numpy_include/" -- mkdir -p "${dest_dir}/local_config_python/python_include/" -- if is_windows; then -- cp -r python_*/include/* "${dest_dir}/local_config_python/python_include/" -- else -- cp -r python_*/include/python*/* "${dest_dir}/local_config_python/python_include/" -- fi -- popd --} -- - function copy_xla_aot_runtime_sources() { - local src_dir=$1 - local dst_dir=$2 -@@ -179,9 +163,6 @@ function prepare_src() { - cp_external \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles \ - "${EXTERNAL_INCLUDES}/" -- cp_local_config_python \ -- bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles \ -- "${EXTERNAL_INCLUDES}/" - copy_xla_aot_runtime_sources \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles/org_tensorflow \ - "${XLA_AOT_RUNTIME_SOURCES}/" -@@ -242,17 +223,11 @@ function prepare_src() { - cp_external \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow/external \ - "${EXTERNAL_INCLUDES}" -- cp_local_config_python \ -- bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow/external \ -- "${EXTERNAL_INCLUDES}" - else - # New-style runfiles structure (--nolegacy_external_runfiles). - cp_external \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles \ - "${EXTERNAL_INCLUDES}" -- cp_local_config_python \ -- bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles \ -- "${EXTERNAL_INCLUDES}" - fi - copy_xla_aot_runtime_sources \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow \ --- -2.41.0 - diff --git a/sci-libs/tensorflow/files/tensorflow-2.15.0-0013-build-use-non-hermetic-python.patch b/sci-libs/tensorflow/files/tensorflow-2.15.0-0013-build-use-non-hermetic-python.patch deleted file mode 100644 index e36a3a0617be..000000000000 --- a/sci-libs/tensorflow/files/tensorflow-2.15.0-0013-build-use-non-hermetic-python.patch +++ /dev/null @@ -1,990 +0,0 @@ -From 0b56f871d620371e1deb66822aa8fb6df68dc568 Mon Sep 17 00:00:00 2001 -From: wangjiezhe <wangjiezhe@gmail.com> -Date: Fri, 22 Dec 2023 21:23:14 +0800 -Subject: [PATCH 13/13] build: use non-hermetic python - ---- - WORKSPACE | 69 ------------------- - tensorflow/BUILD | 2 - - tensorflow/compiler/mlir/glob_lit_test.bzl | 1 - - tensorflow/compiler/mlir/tfr/BUILD | 2 - - tensorflow/dtensor/python/tests/BUILD | 1 - - tensorflow/lite/python/BUILD | 1 - - tensorflow/python/BUILD | 1 - - tensorflow/python/autograph/converters/BUILD | 11 --- - tensorflow/python/autograph/core/BUILD | 1 - - tensorflow/python/autograph/pyct/BUILD | 23 ------- - .../autograph/pyct/common_transformers/BUILD | 2 - - .../autograph/pyct/static_analysis/BUILD | 6 -- - .../python/autograph/pyct/testing/BUILD | 1 - - tensorflow/python/client/BUILD | 1 - - tensorflow/python/compiler/tensorrt/BUILD | 1 - - .../experimental/kernel_tests/service/BUILD | 1 - - tensorflow/python/data/util/BUILD | 2 - - tensorflow/python/debug/lib/BUILD | 1 - - tensorflow/python/distribute/BUILD | 5 -- - .../python/distribute/experimental/rpc/BUILD | 1 - - .../python/distribute/failure_handling/BUILD | 2 - - tensorflow/python/eager/BUILD | 2 - - tensorflow/python/estimator/BUILD | 4 +- - tensorflow/python/framework/BUILD | 7 -- - tensorflow/python/keras/BUILD | 1 - - tensorflow/python/keras/engine/BUILD | 1 - - tensorflow/python/keras/saving/BUILD | 1 - - tensorflow/python/ops/BUILD | 2 - - tensorflow/python/profiler/BUILD | 1 - - .../python/profiler/integration_test/BUILD | 1 - - tensorflow/python/summary/BUILD | 1 - - tensorflow/python/trackable/BUILD | 1 - - tensorflow/python/types/BUILD | 2 - - tensorflow/python/util/BUILD | 3 - - tensorflow/tools/docs/BUILD | 3 - - third_party/xla/xla/glob_lit_test.bzl | 5 -- - third_party/xla/xla/mlir_hlo/tests/BUILD | 1 - - 37 files changed, 2 insertions(+), 169 deletions(-) - -diff --git a/WORKSPACE b/WORKSPACE -index c10a2c4a482..3626ae4e805 100644 ---- a/WORKSPACE -+++ b/WORKSPACE -@@ -11,75 +11,6 @@ http_archive( - ], - ) - --# We must initialize hermetic python first. --load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -- --http_archive( -- name = "bazel_skylib", -- sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", -- urls = [ -- "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", -- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", -- ], --) -- --http_archive( -- name = "rules_python", -- sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b", -- strip_prefix = "rules_python-0.26.0", -- url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz", --) -- --load("@rules_python//python:repositories.bzl", "py_repositories") -- --py_repositories() -- --load("@rules_python//python:repositories.bzl", "python_register_toolchains") --load( -- "//tensorflow/tools/toolchains/python:python_repo.bzl", -- "python_repository", --) -- --python_repository(name = "python_version_repo") -- --load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION") -- --python_register_toolchains( -- name = "python", -- ignore_root_user_error = True, -- python_version = HERMETIC_PYTHON_VERSION, --) -- --load("@python//:defs.bzl", "interpreter") --load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") -- --NUMPY_ANNOTATIONS = { -- "numpy": package_annotation( -- additive_build_content = """\ --filegroup( -- name = "includes", -- srcs = glob(["site-packages/numpy/core/include/**/*.h"]), --) --cc_library( -- name = "numpy_headers", -- hdrs = [":includes"], -- strip_include_prefix="site-packages/numpy/core/include/", --) --""", -- ), --} -- --pip_parse( -- name = "pypi", -- annotations = NUMPY_ANNOTATIONS, -- python_interpreter_target = interpreter, -- requirements = "//:requirements_lock_" + HERMETIC_PYTHON_VERSION.replace(".", "_") + ".txt", --) -- --load("@pypi//:requirements.bzl", "install_deps") -- --install_deps() -- - # Initialize the TensorFlow repository and all dependencies. - # - # The cascade of load() statements and tf_workspace?() calls works around the -diff --git a/tensorflow/BUILD b/tensorflow/BUILD -index ffbe65fdc61..cd9d61797e8 100644 ---- a/tensorflow/BUILD -+++ b/tensorflow/BUILD -@@ -1712,8 +1712,6 @@ py_library( - "//tensorflow/lite/python:lite", - "//tensorflow/lite/python/authoring", - "//tensorflow/python:no_contrib", -- "@pypi_keras//:pkg", -- "@pypi_tensorboard//:pkg", - ], - ) - # copybara:comment_end -diff --git a/tensorflow/compiler/mlir/glob_lit_test.bzl b/tensorflow/compiler/mlir/glob_lit_test.bzl -index e689b4c0b31..f65c86b727b 100644 ---- a/tensorflow/compiler/mlir/glob_lit_test.bzl -+++ b/tensorflow/compiler/mlir/glob_lit_test.bzl -@@ -58,7 +58,6 @@ def _run_lit_test(name, data, size, tags, driver, features, exec_properties): - "@llvm-project//llvm:count", - "@llvm-project//llvm:not", - ], -- deps = ["@pypi_lit//:pkg"], - size = size, - main = "lit.py", - exec_properties = exec_properties, -diff --git a/tensorflow/compiler/mlir/tfr/BUILD b/tensorflow/compiler/mlir/tfr/BUILD -index f8dfcd1c0a6..9f13d2eb068 100644 ---- a/tensorflow/compiler/mlir/tfr/BUILD -+++ b/tensorflow/compiler/mlir/tfr/BUILD -@@ -387,7 +387,6 @@ py_strict_library( - "//tensorflow/python/framework:op_def_registry", - "//tensorflow/python/platform:tf_logging", - "//tensorflow/python/util:tf_inspect", -- "@pypi_gast//:pkg", - ], - ) - -@@ -421,7 +420,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:transpiler", - "//tensorflow/python/framework:op_def_registry", - "//tensorflow/python/util:tf_inspect", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/dtensor/python/tests/BUILD b/tensorflow/dtensor/python/tests/BUILD -index 498642cb5ff..e4482821869 100644 ---- a/tensorflow/dtensor/python/tests/BUILD -+++ b/tensorflow/dtensor/python/tests/BUILD -@@ -326,7 +326,6 @@ pytype_strict_library( - ":test_util", - "//tensorflow/python/platform:client_testlib", - "@absl_py//absl/flags", -- "@pypi_portpicker//:pkg", - ], - ) - -diff --git a/tensorflow/lite/python/BUILD b/tensorflow/lite/python/BUILD -index 3ac3bb20eba..c37bbc385f1 100644 ---- a/tensorflow/lite/python/BUILD -+++ b/tensorflow/lite/python/BUILD -@@ -310,7 +310,6 @@ py_strict_test( - "//tensorflow/python/trackable:autotrackable", - "//third_party/py/numpy", - "@absl_py//absl/testing:parameterized", -- "@pypi_jax//:pkg", - ], - ) - -diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD -index 9810f8acd2e..056534591a3 100644 ---- a/tensorflow/python/BUILD -+++ b/tensorflow/python/BUILD -@@ -589,7 +589,6 @@ py_strict_library( - deps = [ - ":keras_lib", - "//third_party/py/numpy", -- "@pypi_scipy//:pkg", - "@six_archive//:six", - ], - ) -diff --git a/tensorflow/python/autograph/converters/BUILD b/tensorflow/python/autograph/converters/BUILD -index 5624f7611f3..11bc2cd9deb 100644 ---- a/tensorflow/python/autograph/converters/BUILD -+++ b/tensorflow/python/autograph/converters/BUILD -@@ -13,7 +13,6 @@ py_strict_library( - "//tensorflow/python/autograph/core:converter", - "//tensorflow/python/autograph/lang:directives", - "//tensorflow/python/autograph/pyct:templates", -- "@pypi_gast//:pkg", - ], - ) - -@@ -39,7 +38,6 @@ py_strict_library( - "//tensorflow/python/autograph/core:converter", - "//tensorflow/python/autograph/pyct:parser", - "//tensorflow/python/autograph/pyct:templates", -- "@pypi_gast//:pkg", - ], - ) - -@@ -65,7 +63,6 @@ py_strict_library( - "//tensorflow/python/autograph/core:converter", - "//tensorflow/python/autograph/pyct:parser", - "//tensorflow/python/autograph/pyct:templates", -- "@pypi_gast//:pkg", - ], - ) - -@@ -80,7 +77,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:qual_names", - "//tensorflow/python/autograph/pyct:templates", - "//tensorflow/python/autograph/utils:ag_logging", -- "@pypi_gast//:pkg", - ], - ) - -@@ -93,7 +89,6 @@ py_strict_library( - "//tensorflow/python/autograph/lang:directives", - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/util:tf_inspect", -- "@pypi_gast//:pkg", - ], - ) - -@@ -105,7 +100,6 @@ py_strict_library( - "//tensorflow/python/autograph/core:converter", - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/autograph/pyct:templates", -- "@pypi_gast//:pkg", - ], - ) - -@@ -127,7 +121,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct/static_analysis:liveness", - "//tensorflow/python/autograph/pyct/static_analysis:reaching_definitions", - "//tensorflow/python/autograph/pyct/static_analysis:reaching_fndefs", -- "@pypi_gast//:pkg", - ], - ) - -@@ -143,7 +136,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:templates", - "//tensorflow/python/autograph/pyct/static_analysis:activity", - "//tensorflow/python/autograph/pyct/static_analysis:annos", -- "@pypi_gast//:pkg", - ], - ) - -@@ -160,7 +152,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:templates", - "//tensorflow/python/autograph/pyct/static_analysis:activity", - "//tensorflow/python/autograph/pyct/static_analysis:annos", -- "@pypi_gast//:pkg", - ], - ) - -@@ -176,7 +167,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:templates", - "//tensorflow/python/autograph/pyct/static_analysis:activity", - "//tensorflow/python/autograph/pyct/static_analysis:annos", -- "@pypi_gast//:pkg", - ], - ) - -@@ -187,7 +177,6 @@ py_strict_library( - deps = [ - "//tensorflow/python/autograph/core:converter", - "//tensorflow/python/autograph/pyct:templates", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/python/autograph/core/BUILD b/tensorflow/python/autograph/core/BUILD -index 46983ab39f0..3ccdc20293c 100644 ---- a/tensorflow/python/autograph/core/BUILD -+++ b/tensorflow/python/autograph/core/BUILD -@@ -37,7 +37,6 @@ py_strict_library( - visibility = ["//tensorflow:__subpackages__"], - deps = [ - "//tensorflow/python/autograph/pyct:errors", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/python/autograph/pyct/BUILD b/tensorflow/python/autograph/pyct/BUILD -index 949d841e00c..31d4b026460 100644 ---- a/tensorflow/python/autograph/pyct/BUILD -+++ b/tensorflow/python/autograph/pyct/BUILD -@@ -14,7 +14,6 @@ py_strict_library( - ":ast_util", - ":parser", - ":qual_names", -- "@pypi_gast//:pkg", - ], - ) - -@@ -32,7 +31,6 @@ py_strict_library( - ":templates", - ":transformer", - "//tensorflow/python/autograph/utils:ag_logging", -- "@pypi_gast//:pkg", - ], - ) - -@@ -44,7 +42,6 @@ py_strict_library( - ":anno", - ":parser", - ":qual_names", -- "@pypi_gast//:pkg", - ], - ) - -@@ -62,7 +59,6 @@ py_strict_library( - name = "gast_util", - srcs = ["gast_util.py"], - visibility = ["//visibility:public"], -- deps = ["@pypi_gast//:pkg"], - ) - - py_strict_library( -@@ -79,8 +75,6 @@ py_strict_library( - ":errors", - ":inspect_utils", - "//tensorflow/python/util:tf_inspect", -- "@pypi_astunparse//:pkg", -- "@pypi_gast//:pkg", - ], - ) - -@@ -108,7 +102,6 @@ py_strict_library( - ":parser", - ":pretty_printer", - "//tensorflow/python/util:tf_inspect", -- "@pypi_gast//:pkg", - ], - ) - -@@ -116,7 +109,6 @@ py_strict_library( - name = "anno", - srcs = ["anno.py"], - visibility = ["//visibility:public"], -- deps = ["@pypi_gast//:pkg"], - ) - - py_strict_library( -@@ -134,7 +126,6 @@ py_strict_library( - ":parser", - ":pretty_printer", - ":templates", -- "@pypi_gast//:pkg", - ], - ) - -@@ -145,7 +136,6 @@ py_strict_library( - deps = [ - ":anno", - ":parser", -- "@pypi_gast//:pkg", - ], - ) - -@@ -155,8 +145,6 @@ py_strict_library( - visibility = ["//visibility:public"], - deps = [ - ":anno", -- "@pypi_astunparse//:pkg", -- "@pypi_gast//:pkg", - ], - ) - -@@ -180,10 +168,6 @@ py_strict_library( - name = "pretty_printer", - srcs = ["pretty_printer.py"], - visibility = ["//visibility:public"], -- deps = [ -- "@pypi_gast//:pkg", -- "@pypi_termcolor//:pkg", -- ], - ) - - py_strict_test( -@@ -210,7 +194,6 @@ py_strict_test( - ":pretty_printer", - ":qual_names", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) - -@@ -234,7 +217,6 @@ py_strict_test( - ":cfg", - ":parser", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) - -@@ -250,7 +232,6 @@ py_strict_test( - ":pretty_printer", - "//tensorflow/python/platform:client_testlib", - "//tensorflow/python/util:tf_inspect", -- "@pypi_gast//:pkg", - ], - ) - -@@ -325,7 +306,6 @@ py_strict_test( - ":parser", - ":pretty_printer", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) - -@@ -365,7 +345,6 @@ py_strict_test( - ":templates", - "//tensorflow/python/platform:client_testlib", - "@absl_py//absl/testing:parameterized", -- "@pypi_gast//:pkg", - ], - ) - -@@ -380,7 +359,6 @@ py_strict_test( - ":parser", - ":transformer", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) - -@@ -393,6 +371,5 @@ py_strict_test( - ":transformer", - ":transpiler", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) -diff --git a/tensorflow/python/autograph/pyct/common_transformers/BUILD b/tensorflow/python/autograph/pyct/common_transformers/BUILD -index 2be00498cf7..b9da2f210c9 100644 ---- a/tensorflow/python/autograph/pyct/common_transformers/BUILD -+++ b/tensorflow/python/autograph/pyct/common_transformers/BUILD -@@ -16,7 +16,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:gast_util", - "//tensorflow/python/autograph/pyct:templates", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -32,6 +31,5 @@ py_strict_test( - "//tensorflow/python/autograph/pyct:parser", - "//tensorflow/python/autograph/pyct:transformer", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) -diff --git a/tensorflow/python/autograph/pyct/static_analysis/BUILD b/tensorflow/python/autograph/pyct/static_analysis/BUILD -index 4329523b056..9c643ccd63c 100644 ---- a/tensorflow/python/autograph/pyct/static_analysis/BUILD -+++ b/tensorflow/python/autograph/pyct/static_analysis/BUILD -@@ -14,7 +14,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/autograph/pyct:cfg", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -26,7 +25,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/autograph/pyct:cfg", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -56,7 +54,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/autograph/pyct:qual_names", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -71,7 +68,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:cfg", - "//tensorflow/python/autograph/pyct:qual_names", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -83,7 +79,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct:anno", - "//tensorflow/python/autograph/pyct:cfg", - "//tensorflow/python/autograph/pyct:transformer", -- "@pypi_gast//:pkg", - ], - ) - -@@ -107,7 +102,6 @@ py_strict_test( - "//tensorflow/python/autograph/pyct:qual_names", - "//tensorflow/python/autograph/pyct:transformer", - "//tensorflow/python/platform:client_testlib", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/python/autograph/pyct/testing/BUILD b/tensorflow/python/autograph/pyct/testing/BUILD -index 21a6775b0fb..fcac2065ca0 100644 ---- a/tensorflow/python/autograph/pyct/testing/BUILD -+++ b/tensorflow/python/autograph/pyct/testing/BUILD -@@ -15,7 +15,6 @@ py_strict_library( - deps = [ - "//tensorflow/python/autograph/pyct:templates", - "//third_party/py/numpy", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/python/client/BUILD b/tensorflow/python/client/BUILD -index c13a6122f41..77bc522a758 100644 ---- a/tensorflow/python/client/BUILD -+++ b/tensorflow/python/client/BUILD -@@ -294,7 +294,6 @@ py_strict_library( - "//tensorflow/python/util:nest", - "//tensorflow/python/util:tf_export", - "//third_party/py/numpy", -- "@pypi_wrapt//:pkg", - ], - ) - -diff --git a/tensorflow/python/compiler/tensorrt/BUILD b/tensorflow/python/compiler/tensorrt/BUILD -index f3ca24c9a4b..ee086bdaed2 100644 ---- a/tensorflow/python/compiler/tensorrt/BUILD -+++ b/tensorflow/python/compiler/tensorrt/BUILD -@@ -69,7 +69,6 @@ py_strict_library( - "//tensorflow/python/util:nest", - "//tensorflow/python/util:tf_export", - "//third_party/py/numpy", -- "@pypi_packaging//:pkg", - "@six_archive//:six", - ], - ) -diff --git a/tensorflow/python/data/experimental/kernel_tests/service/BUILD b/tensorflow/python/data/experimental/kernel_tests/service/BUILD -index cfac30fe0db..355a558bc93 100644 ---- a/tensorflow/python/data/experimental/kernel_tests/service/BUILD -+++ b/tensorflow/python/data/experimental/kernel_tests/service/BUILD -@@ -143,7 +143,6 @@ tf_py_strict_test( - "//tensorflow/python/ops:array_ops", - "//tensorflow/python/platform:client_testlib", - "@absl_py//absl/testing:parameterized", -- "@pypi_portpicker//:pkg", - ], - ) - -diff --git a/tensorflow/python/data/util/BUILD b/tensorflow/python/data/util/BUILD -index f7298a6f66b..cef29c3d992 100644 ---- a/tensorflow/python/data/util/BUILD -+++ b/tensorflow/python/data/util/BUILD -@@ -94,7 +94,6 @@ py_strict_library( - "//tensorflow/python/util:deprecation", - "//tensorflow/python/util:nest_util", - "//tensorflow/python/util:tf_export", -- "@pypi_wrapt//:pkg", - ], - ) - -@@ -125,7 +124,6 @@ py_strict_test( - "//tensorflow/python/util:compat", - "//third_party/py/numpy", - "@absl_py//absl/testing:parameterized", -- "@pypi_wrapt//:pkg", - ], - ) - -diff --git a/tensorflow/python/debug/lib/BUILD b/tensorflow/python/debug/lib/BUILD -index 37c99b30dd2..012e349dffc 100644 ---- a/tensorflow/python/debug/lib/BUILD -+++ b/tensorflow/python/debug/lib/BUILD -@@ -596,7 +596,6 @@ py_strict_library( - "//tensorflow/python/lib/io:lib", - "//tensorflow/python/ops:variables", - "//tensorflow/python/util:compat", -- "@pypi_portpicker//:pkg", - ], - ) - -diff --git a/tensorflow/python/distribute/BUILD b/tensorflow/python/distribute/BUILD -index 0c233b2b4a4..19b496f427a 100644 ---- a/tensorflow/python/distribute/BUILD -+++ b/tensorflow/python/distribute/BUILD -@@ -523,7 +523,6 @@ cuda_py_strict_test( - "//tensorflow/python/ops:variable_scope", - "//third_party/py/numpy", - "@absl_py//absl/testing:parameterized", -- "@pypi_dill//:pkg", # build_cleaner: keep - ], - ) - -@@ -1440,7 +1439,6 @@ cuda_py_strict_test( - "//tensorflow/python/ops:math_ops", - "//tensorflow/python/util:nest", - "@absl_py//absl/testing:parameterized", -- "@pypi_dill//:pkg", # build_cleaner: keep - ], - ) - -@@ -1764,7 +1762,6 @@ distribute_py_strict_test( - "//tensorflow/python/ops:variable_v1", - "//tensorflow/python/saved_model/model_utils:mode_keys", - "@absl_py//absl/testing:parameterized", -- "@pypi_wrapt//:pkg", - ], - ) - -@@ -2295,8 +2292,6 @@ py_strict_library( - "//tensorflow/python/framework:test_lib", - "//tensorflow/python/util:tf_export", - "@absl_py//absl/logging", -- "@pypi_dill//:pkg", # build_cleaner: keep -- "@pypi_tblib//:pkg", # build_cleaner: keep - "@six_archive//:six", - ], - ) -diff --git a/tensorflow/python/distribute/experimental/rpc/BUILD b/tensorflow/python/distribute/experimental/rpc/BUILD -index 3a3682cd6cf..8ed343db636 100644 ---- a/tensorflow/python/distribute/experimental/rpc/BUILD -+++ b/tensorflow/python/distribute/experimental/rpc/BUILD -@@ -60,6 +60,5 @@ tf_py_strict_test( - "//tensorflow/python/ops:variables", - "//tensorflow/python/platform:client_testlib", - "//tensorflow/python/util:nest", -- "@pypi_portpicker//:pkg", - ], - ) -diff --git a/tensorflow/python/distribute/failure_handling/BUILD b/tensorflow/python/distribute/failure_handling/BUILD -index c9af884fbb7..3aaad5eced1 100644 ---- a/tensorflow/python/distribute/failure_handling/BUILD -+++ b/tensorflow/python/distribute/failure_handling/BUILD -@@ -47,7 +47,6 @@ py_strict_library( - deps = [ - "//tensorflow/python/eager:context", - "//tensorflow/python/platform:tf_logging", -- "@pypi_requests//:pkg", - "@six_archive//:six", - ], - ) -@@ -134,7 +133,6 @@ tf_py_strict_test( - "//tensorflow/python/platform:tf_logging", - "//tensorflow/python/training:server_lib", - "@absl_py//absl/testing:parameterized", -- "@pypi_dill//:pkg", # build_cleaner: keep - ], - ) - -diff --git a/tensorflow/python/eager/BUILD b/tensorflow/python/eager/BUILD -index e72f54c48fd..057bce876fd 100644 ---- a/tensorflow/python/eager/BUILD -+++ b/tensorflow/python/eager/BUILD -@@ -1180,7 +1180,6 @@ cuda_py_strict_test( - "//tensorflow/python/training:server_lib", - "//tensorflow/python/util:compat", - "@absl_py//absl/testing:parameterized", -- "@pypi_portpicker//:pkg", - ], - ) - -@@ -1320,7 +1319,6 @@ py_strict_library( - "//tensorflow/python/autograph/pyct/static_analysis:reaching_fndefs", - "//tensorflow/python/framework:op_def_registry", - "//tensorflow/python/framework:ops", -- "@pypi_gast//:pkg", - ], - ) - -diff --git a/tensorflow/python/estimator/BUILD b/tensorflow/python/estimator/BUILD -index 73afdd8b239..7e58789cee5 100644 ---- a/tensorflow/python/estimator/BUILD -+++ b/tensorflow/python/estimator/BUILD -@@ -382,7 +382,7 @@ py_library( - ], - ) - --alias( -+py_library( - name = "expect_tensorflow_estimator_installed", -- actual = "@pypi_tensorflow_estimator//:pkg", -+ srcs_version = "PY3", - ) -diff --git a/tensorflow/python/framework/BUILD b/tensorflow/python/framework/BUILD -index 9bfb9d2d9dd..19b43eab9ac 100644 ---- a/tensorflow/python/framework/BUILD -+++ b/tensorflow/python/framework/BUILD -@@ -279,7 +279,6 @@ py_strict_library( - "//tensorflow/python/eager:execute", - "//tensorflow/security/fuzzing/py:annotation_types", - "//tensorflow/tools/docs:doc_controls", -- "@pypi_typing_extensions//:pkg", - ], - ) - -@@ -365,7 +364,6 @@ py_strict_library( - "//tensorflow/python/util:deprecation", - "//tensorflow/python/util:tf_export", - "//third_party/py/numpy", -- "@pypi_packaging//:pkg", - ] + if_xla_available([ - "//tensorflow/python:_pywrap_tfcompile", - ]), -@@ -1760,7 +1758,6 @@ py_strict_library( - deps = [ - ":composite_tensor", - "//tensorflow/python/util:nest", -- "@pypi_typing_extensions//:pkg", - ], - ) - -@@ -1788,7 +1785,6 @@ py_strict_library( - "//tensorflow/python/util:nest", - "//tensorflow/python/util:tf_decorator", - "//tensorflow/python/util:tf_export", -- "@pypi_typing_extensions//:pkg", - ], - ) - -@@ -1932,7 +1928,6 @@ pytype_strict_library( - "//tensorflow/python/lib/io:lib", - "//tensorflow/python/platform:tf_logging", - "//tensorflow/python/util:compat", -- "@pypi_packaging//:pkg", - ], - ) - -@@ -2185,7 +2180,6 @@ py_strict_library( - "//tensorflow/python/util/protobuf", - "//third_party/py/numpy", - "@absl_py//absl/testing:parameterized", -- "@pypi_portpicker//:pkg", - ], - ) - -@@ -2781,7 +2775,6 @@ tf_py_strict_test( - "//tensorflow/python/util:nest", - "//tensorflow/python/util:tf_decorator", - "@absl_py//absl/testing:parameterized", -- "@pypi_typing_extensions//:pkg", - ], - ) - -diff --git a/tensorflow/python/keras/BUILD b/tensorflow/python/keras/BUILD -index f9e31edae67..011cc3a73b8 100755 ---- a/tensorflow/python/keras/BUILD -+++ b/tensorflow/python/keras/BUILD -@@ -44,7 +44,6 @@ py_library( - "//tensorflow/python/saved_model", - "//tensorflow/python/training", - "//tensorflow/python/util:nest", -- "@pypi_h5py//:pkg", - ], - ) - -diff --git a/tensorflow/python/keras/engine/BUILD b/tensorflow/python/keras/engine/BUILD -index a24dc27b25f..1b95ca18d06 100644 ---- a/tensorflow/python/keras/engine/BUILD -+++ b/tensorflow/python/keras/engine/BUILD -@@ -95,7 +95,6 @@ py_library( - "//tensorflow/python/util:tf_decorator", - "//tensorflow/python/util:tf_export", - "//tensorflow/tools/docs:doc_controls", -- "@pypi_h5py//:pkg", - ], - ) - -diff --git a/tensorflow/python/keras/saving/BUILD b/tensorflow/python/keras/saving/BUILD -index db1d2d814ca..b37abc164b3 100644 ---- a/tensorflow/python/keras/saving/BUILD -+++ b/tensorflow/python/keras/saving/BUILD -@@ -55,6 +55,5 @@ py_library( - "//tensorflow/python/platform:tf_logging", - "//tensorflow/python/saved_model", - "//tensorflow/python/training:saver", -- "@pypi_h5py//:pkg", - ], - ) -diff --git a/tensorflow/python/ops/BUILD b/tensorflow/python/ops/BUILD -index b3a3d612a01..c242923f832 100644 ---- a/tensorflow/python/ops/BUILD -+++ b/tensorflow/python/ops/BUILD -@@ -2780,7 +2780,6 @@ py_strict_library( - "//tensorflow/python/util:dispatch", - "//tensorflow/python/util:tf_export", - "//third_party/py/numpy", -- "@pypi_opt_einsum//:pkg", - ], - ) - -@@ -3872,7 +3871,6 @@ cuda_py_strict_test( - "//tensorflow/python/platform:tf_logging", - "//third_party/py/numpy", - "@absl_py//absl/testing:parameterized", -- "@pypi_opt_einsum//:pkg", - ], - ) - -diff --git a/tensorflow/python/profiler/BUILD b/tensorflow/python/profiler/BUILD -index b1cfd6ea10c..9413aeeab8b 100644 ---- a/tensorflow/python/profiler/BUILD -+++ b/tensorflow/python/profiler/BUILD -@@ -43,7 +43,6 @@ cuda_py_strict_test( - "//tensorflow/python/eager:test", - "//tensorflow/python/framework:errors", - "//tensorflow/python/framework:test_lib", -- "@pypi_portpicker//:pkg", - ], - ) - -diff --git a/tensorflow/python/profiler/integration_test/BUILD b/tensorflow/python/profiler/integration_test/BUILD -index b20698ea6ea..e7060e5a315 100644 ---- a/tensorflow/python/profiler/integration_test/BUILD -+++ b/tensorflow/python/profiler/integration_test/BUILD -@@ -35,6 +35,5 @@ cuda_py_strict_test( - "//tensorflow/python/platform:tf_logging", - "//tensorflow/python/profiler:profiler_client", - "//tensorflow/python/profiler:profiler_v2", -- "@pypi_portpicker//:pkg", - ], - ) -diff --git a/tensorflow/python/summary/BUILD b/tensorflow/python/summary/BUILD -index 126fb6d31f7..b292e39356f 100644 ---- a/tensorflow/python/summary/BUILD -+++ b/tensorflow/python/summary/BUILD -@@ -121,6 +121,5 @@ tf_py_strict_test( - "//tensorflow/python/ops:summary_ops_v2", - "//tensorflow/python/platform:client_testlib", - "//tensorflow/python/training:training_util", -- "@pypi_tensorboard//:pkg", - ], - ) -diff --git a/tensorflow/python/trackable/BUILD b/tensorflow/python/trackable/BUILD -index 30efc64b5fd..2e2390a6643 100644 ---- a/tensorflow/python/trackable/BUILD -+++ b/tensorflow/python/trackable/BUILD -@@ -225,7 +225,6 @@ py_strict_library( - "//tensorflow/python/ops:variables", - "//tensorflow/python/util:compat", - "//tensorflow/python/util:tf_export", -- "@pypi_wrapt//:pkg", - ], - ) - -diff --git a/tensorflow/python/types/BUILD b/tensorflow/python/types/BUILD -index c04dc039153..43a030a051e 100644 ---- a/tensorflow/python/types/BUILD -+++ b/tensorflow/python/types/BUILD -@@ -24,7 +24,6 @@ pytype_strict_library( - "//tensorflow/python/util:_pywrap_utils", - "//tensorflow/python/util:tf_export", - "//third_party/py/numpy", -- "@pypi_typing_extensions//:pkg", - ], - ) - -@@ -71,7 +70,6 @@ pytype_strict_library( - ":core", - "//tensorflow/python/util:tf_export", - "//tensorflow/tools/docs:doc_controls", -- "@pypi_typing_extensions//:pkg", - ], - ) - -diff --git a/tensorflow/python/util/BUILD b/tensorflow/python/util/BUILD -index d1e7d626a1d..248eb23bcfe 100644 ---- a/tensorflow/python/util/BUILD -+++ b/tensorflow/python/util/BUILD -@@ -732,7 +732,6 @@ py_strict_library( - # py_test because not all tensorflow tests use tensorflow.bzl's py_test. - "//tensorflow/python:global_test_configuration", - "@six_archive//:six", -- "@pypi_wrapt//:pkg", - "//tensorflow/python:pywrap_tensorflow", - ":_pywrap_utils", - ], -@@ -893,7 +892,6 @@ py_strict_library( - # py_test because not all tensorflow tests use tensorflow.bzl's py_test. - "//tensorflow/python:global_test_configuration", - "//third_party/py/numpy", -- "@pypi_wrapt//:pkg", - ], - ) - -@@ -1029,7 +1027,6 @@ py_strict_library( - # py_test because not all tensorflow tests use tensorflow.bzl's py_test. - "//tensorflow/python:global_test_configuration", - ":tf_export", -- "@pypi_wrapt//:pkg", - ":_pywrap_utils", - ":_pywrap_nest", - ], -diff --git a/tensorflow/tools/docs/BUILD b/tensorflow/tools/docs/BUILD -index aa9490cf911..48e45b23a2a 100644 ---- a/tensorflow/tools/docs/BUILD -+++ b/tensorflow/tools/docs/BUILD -@@ -137,7 +137,6 @@ py_strict_library( - srcs = ["fenced_doctest_lib.py"], - deps = [ - ":tf_doctest_lib", -- "@pypi_astor//:pkg", - ], - ) - -@@ -178,7 +177,6 @@ py_strict_test( - # copybara:uncomment "//third_party/py/tensorflow:tensorflow_estimator", - "//tensorflow:tensorflow_py", - "//tensorflow/python/platform:test", -- "@pypi_packaging//:pkg", - ], - ) - -@@ -214,7 +212,6 @@ py_strict_library( - "//tensorflow/python/util:tf_inspect", - "@absl_py//absl:app", - "@absl_py//absl/flags", -- "@pypi_packaging//:pkg", - ], - ) - -diff --git a/third_party/xla/xla/glob_lit_test.bzl b/third_party/xla/xla/glob_lit_test.bzl -index 79b4adc3edd..5893eba46c2 100644 ---- a/third_party/xla/xla/glob_lit_test.bzl -+++ b/third_party/xla/xla/glob_lit_test.bzl -@@ -52,10 +52,6 @@ def _run_lit_test(name, data, size, tags, driver, features, exec_properties): - # can remove this logic. This is necessary to have these tests run on builds - # using Python 3.11, but also to not include `@pypi_lit` in standalone xla - # builds where it won't be found. -- deps = [] -- if xla_root_dir == "tensorflow/compiler/xla/": -- deps.append("@pypi_lit//:pkg") -- - native.py_test( - name = name, - srcs = ["@llvm-project//llvm:lit"], -@@ -69,7 +65,6 @@ def _run_lit_test(name, data, size, tags, driver, features, exec_properties): - "@llvm-project//llvm:count", - "@llvm-project//llvm:not", - ], -- deps = deps, - size = size, - main = "lit.py", - exec_properties = exec_properties, -diff --git a/third_party/xla/xla/mlir_hlo/tests/BUILD b/third_party/xla/xla/mlir_hlo/tests/BUILD -index 89c6533956f..771d337be08 100644 ---- a/third_party/xla/xla/mlir_hlo/tests/BUILD -+++ b/third_party/xla/xla/mlir_hlo/tests/BUILD -@@ -27,7 +27,6 @@ package( - tags = [ - "nomsan", # The execution engine doesn't work with msan, see b/248097619. - ], -- deps = ["@pypi_lit//:pkg"], - ) - for src in glob(["**/*.mlir"]) - ] --- -2.41.0 - diff --git a/sci-libs/tensorflow/metadata.xml b/sci-libs/tensorflow/metadata.xml deleted file mode 100644 index 62556b7e0025..000000000000 --- a/sci-libs/tensorflow/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>perfinion@gentoo.org</email> - <name>Jason Zaman</name> - </maintainer> - <use> - <flag name="xla">XLA (Accelerated Linear Algebra) Optimizing Compiler for TensorFlow</flag> - </use> - <upstream> - <remote-id type="github">tensorflow/tensorflow</remote-id> - <remote-id type="cpe">cpe:/a:google:tensorflow</remote-id> - </upstream> -</pkgmetadata> diff --git a/sci-libs/tensorflow/tensorflow-2.15.0.ebuild b/sci-libs/tensorflow/tensorflow-2.15.0.ebuild deleted file mode 100644 index d2304445fcf6..000000000000 --- a/sci-libs/tensorflow/tensorflow-2.15.0.ebuild +++ /dev/null @@ -1,464 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{10..11} ) -MY_PV=${PV/_rc/-rc} -MY_P=${PN}-${MY_PV} -DEP_VER="$(ver_cut 1-2)" - -inherit bazel check-reqs cuda distutils-r1 flag-o-matic multibuild prefix toolchain-funcs - -DESCRIPTION="Computation framework using data flow graphs for scalable machine learning" -HOMEPAGE="https://www.tensorflow.org/" - -RESTRICT="test" # Tests need GPU access -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="cuda mpi +python xla" -CPU_USE_FLAGS_X86="sse sse2 sse3 sse4_1 sse4_2 avx avx2 fma3 fma4" -for i in $CPU_USE_FLAGS_X86; do - IUSE+=" cpu_flags_x86_${i}" -done - -# distfiles that bazel uses for the workspace, will be copied to basel-distdir -# pkgcheck complains but do NOT change the .zip to .tar.gz, bazel requires the exact tarball (basename and sha256). -# the build will fail if different archives are used. -bazel_external_uris=" - https://github.com/Maratyszcza/FP16/archive/4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip -> FP16-4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip - https://github.com/Maratyszcza/FXdiv/archive/63058eff77e11aa15bf531df5dd34395ec3017c8.zip -> FXdiv-63058eff77e11aa15bf531df5dd34395ec3017c8.zip - https://github.com/Maratyszcza/pthreadpool/archive/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip -> pthreadpool-4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip - https://github.com/bazelbuild/apple_support/releases/download/1.6.0/apple_support.1.6.0.tar.gz - https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz - https://github.com/bazelbuild/bazel-toolchains/archive/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz -> bazel-toolchains-8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz - https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz -> bazelbuild-platforms-0.0.6.tar.gz - https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip -> bazelbuild-rules_android-v0.1.1.zip - https://github.com/bazelbuild/rules_apple/releases/download/2.3.0/rules_apple.2.3.0.tar.gz - https://github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz -> bazelbuild-rules_cc-081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz - https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz -> bazelbuild-rules_closure-308b05b2419edb5c8ee0471b67a40403df940149.tar.gz - https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/rules_docker-v0.10.0.tar.gz -> bazelbuild-rules_docker-v0.10.0.tar.gz - https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz -> bazelbuild-rules_foreign_cc-0.7.1.tar.gz - https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip -> bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip - https://github.com/bazelbuild/rules_java/releases/download/5.5.1/rules_java-5.5.1.tar.gz -> bazelbuild-rules_java-5.5.1.tar.gz - https://github.com/bazelbuild/rules_jvm_external/archive/4.3.zip -> bazelbuild-rules_jvm_external-4.3.zip - https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz -> bazelbuild-rules_pkg-0.7.1.tar.gz - https://github.com/bazelbuild/rules_proto/archive/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz -> bazelbuild-rules_proto-11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz - https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz -> bazelbuild-rules_python-0.1.0.tar.gz - https://github.com/bazelbuild/rules_swift/releases/download/1.5.0/rules_swift.1.5.0.tar.gz -> bazelbuild-rules_swift.1.5.0.tar.gz - https://github.com/dmlc/dlpack/archive/9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz -> dlpack-9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz - https://github.com/facebook/zstd/archive/v1.4.5.zip -> zstd-v1.4.5.zip - https://github.com/google/XNNPACK/archive/bbbaa7352a3ea729987d3e654d37be93e8009691.zip -> XNNPACK-bbbaa7352a3ea729987d3e654d37be93e8009691.zip - https://github.com/google/benchmark/archive/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz -> benchmark-f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz - https://github.com/google/brotli/archive/3914999fcc1fda92e750ef9190aa6db9bf7bdb07.zip -> brotli-3914999fcc1fda92e750ef9190aa6db9bf7bdb07.zip - https://github.com/google/farmhash/archive/0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz -> farmhash-0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz - https://github.com/google/gemmlowp/archive/e844ffd17118c1e17d94e1ba4354c075a4577b88.zip -> gemmlowp-e844ffd17118c1e17d94e1ba4354c075a4577b88.zip - https://github.com/google/highwayhash/archive/c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz -> highwayhash-c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz - https://github.com/google/re2/archive/03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz -> re2-03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz - https://github.com/google/riegeli/archive/264ef7b4a1314d97265b37544b27cd3923ea72d2.zip -> riegeli-264ef7b4a1314d97265b37544b27cd3923ea72d2.zip - https://github.com/google/ruy/archive/3286a34cc8de6149ac6844107dfdffac91531e72.zip -> ruy-3286a34cc8de6149ac6844107dfdffac91531e72.zip - https://github.com/googleapis/googleapis/archive/6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz -> googleapis-6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz - https://github.com/jax-ml/ml_dtypes/archive/2ca30a2b3c0744625ae3d6988f5596740080bbd0/ml_dtypes-2ca30a2b3c0744625ae3d6988f5596740080bbd0.tar.gz - https://github.com/joe-kuo/sobol_data/archive/835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz -> sobol_data-835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz - https://github.com/llvm/llvm-project/archive/49cb1595c1b3ae1de3684fea6148363c15bae12a.tar.gz -> llvm-project-49cb1595c1b3ae1de3684fea6148363c15bae12a.tar.gz - https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/openmp-10.0.1.src.tar.xz -> llvmorg-10.0.1-openmp-10.0.1.src.tar.xz - https://github.com/mborgerding/kissfft/archive/131.1.0.tar.gz -> kissfft-131.1.0.tar.gz - https://github.com/oneapi-src/oneDNN/archive/refs/tags/v3.2.1.tar.gz -> oneDNN-v3.2.1.tar.gz - https://github.com/openxla/stablehlo/archive/78f57e34a25367ef3192cd35da36b01c763f4ecf.zip -> openxla-stablehlo-78f57e34a25367ef3192cd35da36b01c763f4ecf.zip - https://github.com/openxla/triton/archive/cl555471166.tar.gz -> openxla-triton-cl555471166.tar.gz - https://github.com/petewarden/OouraFFT/archive/v1.0.tar.gz -> OouraFFT-v1.0.tar.gz - https://github.com/protocolbuffers/protobuf/archive/v3.21.9.zip -> protobuf-3.21.9.zip - https://github.com/pybind/pybind11_abseil/archive/2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz -> pybind11_abseil-2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz - https://github.com/pybind/pybind11_bazel/archive/72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz -> pybind11_bazel-72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz - https://github.com/pybind/pybind11_protobuf/archive/80f3440cd8fee124e077e2e47a8a17b78b451363.zip -> pybind11_protobuf-80f3440cd8fee124e077e2e47a8a17b78b451363.zip - https://github.com/pytorch/cpuinfo/archive/5e63739504f0f8e18e941bd63b2d6d42536c7d90.tar.gz -> pytorch-cpuinfo-5e63739504f0f8e18e941bd63b2d6d42536c7d90.tar.gz - https://github.com/pytorch/cpuinfo/archive/959002f82d7962a473d8bf301845f2af720e0aa4.zip -> pytorch-cpuinfo-959002f82d7962a473d8bf301845f2af720e0aa4.zip - https://github.com/tensorflow/runtime/archive/70637966e2ec9afccc2cf4d51ed2391172b1b9c5.tar.gz -> tensorflow-runtime-70637966e2ec9afccc2cf4d51ed2391172b1b9c5.tar.gz - https://github.com/yugr/Implib.so/archive/5fb84c2a750434b9df1da67d67b749eb929598f1.tar.gz -> Implib.so-5fb84c2a750434b9df1da67d67b749eb929598f1.tar.gz - https://gitlab.com/libeigen/eigen/-/archive/66e8f38891841bf88ee976a316c0c78a52f0cee5/eigen-66e8f38891841bf88ee976a316c0c78a52f0cee5.tar.gz - https://gitlab.mpcdf.mpg.de/mtr/ducc/-/archive/3d28aadfd8bb0219e3df188613dbbcdfffccc3cd/ducc-3d28aadfd8bb0219e3df188613dbbcdfffccc3cd.tar.gz - cuda? ( - https://github.com/NVIDIA/cudnn-frontend/archive/refs/tags/v0.9.zip -> cudnn-frontend-v0.9.zip - https://github.com/NVlabs/cub/archive/1.9.9.zip -> cub-1.9.9.zip - https://github.com/nvidia/nccl/archive/v2.16.5-1.tar.gz -> nvidia-nccl-v2.16.5-1.tar.gz - ) - python? ( - https://github.com/intel/ARM_NEON_2_x86_SSE/archive/a15b489e1222b2087007546b4912e21293ea86ff.tar.gz -> ARM_NEON_2_x86_SSE-a15b489e1222b2087007546b4912e21293ea86ff.tar.gz - https://storage.googleapis.com/mirror.tensorflow.org/docs.python.org/2.7/_sources/license.rst.txt -> tensorflow-1.15.0-python-license.rst.txt - )" - -SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz - ${bazel_external_uris}" - -# abseil-cpp-20211102.0-r0 does not work with NVCC -# check flatbuffers version in tensorflow/lite/schema/schema_generated.h -RDEPEND=" - app-arch/snappy - =dev-cpp/abseil-cpp-20230125.2*:= - dev-db/sqlite - dev-libs/double-conversion - dev-libs/icu:= - >=dev-libs/jsoncpp-1.9.2:= - >=dev-libs/nsync-1.25.0 - dev-libs/openssl:0= - >=dev-libs/protobuf-3.13.0:= - >=dev-libs/re2-0.2019.06.01:= - media-libs/giflib - media-libs/libjpeg-turbo - media-libs/libpng:0 - >=net-libs/grpc-1.28:= - net-misc/curl - sys-libs/zlib - >=sys-apps/hwloc-2:= - cuda? ( - dev-util/nvidia-cuda-toolkit:=[profiler] - =dev-libs/cudnn-8* - ) - mpi? ( virtual/mpi ) - python? ( - ${PYTHON_DEPS} - ~dev-libs/flatbuffers-23.5.26:= - dev-python/absl-py[${PYTHON_USEDEP}] - >=dev-python/astor-0.7.1[${PYTHON_USEDEP}] - dev-python/astunparse[${PYTHON_USEDEP}] - dev-python/clang-python[${PYTHON_USEDEP}] - dev-python/dill[${PYTHON_USEDEP}] - ~dev-python/flatbuffers-23.5.26[${PYTHON_USEDEP}] - >=dev-python/gast-0.3.3[${PYTHON_USEDEP}] - dev-python/h5py[${PYTHON_USEDEP}] - >=dev-python/ml-dtypes-0.2.0[${PYTHON_USEDEP}] - >=dev-python/numpy-1.19[${PYTHON_USEDEP}] - >=dev-python/google-pasta-0.1.8[${PYTHON_USEDEP}] - >=dev-python/opt-einsum-3.3.0[${PYTHON_USEDEP}] - >=dev-python/protobuf-python-3.13.0[${PYTHON_USEDEP}] - dev-python/pybind11[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/tblib[${PYTHON_USEDEP}] - dev-python/termcolor[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] - >=dev-python/grpcio-1.28[${PYTHON_USEDEP}] - >=dev-python/wrapt-1.11.1[${PYTHON_USEDEP}] - >=net-libs/google-cloud-cpp-0.10.0 - =sci-visualization/tensorboard-${DEP_VER}*[${PYTHON_USEDEP}] - )" -DEPEND="${RDEPEND} - python? ( - dev-python/mock - dev-python/setuptools - )" -PDEPEND="python? ( - =sci-libs/keras-${DEP_VER}*[${PYTHON_USEDEP}] - =sci-libs/tensorflow-estimator-${DEP_VER}*[${PYTHON_USEDEP}] - )" -# >=dev-libs/protobuf-3.8.0 -# bazel-6.4 failed with undefined references to `_mlir_ciface_*' -# see https://discuss.tensorflow.org/t/undefined-references-to-mlir-ciface-symbols/20571 -# bazel-6.3 failed with undefined reference to `riegeli::RecordsMetadata::Clear()' -# tested successfully on bazel-6.1.2, bazel-6.2.0 and bazel-6.2.1 -BDEPEND=" - app-arch/unzip - =dev-build/bazel-6* - <dev-build/bazel-6.3 - dev-java/java-config - cuda? ( - >=dev-util/nvidia-cuda-toolkit-9.1[profiler] - ) - !python? ( dev-lang/python ) - python? ( - dev-python/cython - dev-python/mock - >=dev-python/grpcio-tools-1.28 - ) - dev-util/patchelf" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -S="${WORKDIR}/${MY_P}" - -DOCS=( AUTHORS CONTRIBUTING.md ISSUE_TEMPLATE.md README.md RELEASE.md ) -CHECKREQS_MEMORY="5G" -CHECKREQS_DISK_BUILD="10G" - -PATCHES=( - "${FILESDIR}/${P}-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch" - "${FILESDIR}/${P}-0002-systemlib-Latest-absl-LTS-has-split-cord-libs.patch" - "${FILESDIR}/${P}-0003-mkl_dnn-Must-link-against-libm-for-round-and-log2.patch" - "${FILESDIR}/${P}-0004-tensorflow_cc-Add-systemlib-nsync-linkopts.patch" - "${FILESDIR}/${P}-0005-systemlib-Updates-for-Abseil-20220623-LTS.patch" - "${FILESDIR}/${P}-0006-systemlib-Update-targets-for-absl_py.patch" - "${FILESDIR}/${P}-0007-systemlib-Add-well_known_types_py_pb2-target.patch" - "${FILESDIR}/${P}-0008-Relax-setup.py-version-requirements.patch" - "${FILESDIR}/${P}-0009-systemlib-update-targets-for-absl.patch" - "${FILESDIR}/${P}-0010-systemlib-fix-missing-osx-in-pybind11.patch" - "${FILESDIR}/${P}-0011-systemlib-fix-missing-LICENSE-in-flatbuffers.patch" - "${FILESDIR}/${P}-0012-installation-remove-cp_local_config_python.patch" - "${FILESDIR}/${P}-0013-build-use-non-hermetic-python.patch" -) - -get-cpu-flags() { - local i f=() - # Keep this list in sync with tensorflow/core/platform/cpu_feature_guard.cc. - for i in sse sse2 sse3 sse4_1 sse4_2 avx avx2 fma4; do - use cpu_flags_x86_${i} && f+=( -m${i/_/.} ) - done - use cpu_flags_x86_fma3 && f+=( -mfma ) - echo "${f[*]}" -} - -pkg_setup() { - local num_pythons_enabled - num_pythons_enabled=0 - count_impls() { - num_pythons_enabled=$((${num_pythons_enabled} + 1)) - } - use python && python_foreach_impl count_impls - - # 10G to build C/C++ libs, 6G per python impl - CHECKREQS_DISK_BUILD="$((10 + 6 * ${num_pythons_enabled}))G" - check-reqs_pkg_setup -} - -src_unpack() { - # Only unpack the main distfile - unpack "${P}.tar.gz" - bazel_load_distfiles "${bazel_external_uris}" -} - -src_prepare() { - local d - export JAVA_HOME=$(java-config --jre-home) # so keepwork works - export TF_PYTHON_VERSION="${EPYTHON/python/}" - - # Use non-hermetic python - for d in third_party third_party/xla/third_party third_party/xla/third_party/tsl/third_party; - do - mv ${d}/py/non_hermetic ${d} || die - rm -rf ${d}/py || die - mv ${d}/non_hermetic ${d}/py || die - done - - append-flags $(get-cpu-flags) - append-cxxflags -std=c++17 - export BUILD_CXXFLAGS+=" -std=c++17" - filter-flags '-fvtable-verify=@(std|preinit)' - bazel_setup_bazelrc - - # Relax version checks in setup.py - # Fixed in patch already - # sed -i "/^ '/s/==/>=/g" tensorflow/tools/pip_package/setup.py || die - - # Prefixify hard-coded command locations - hprefixify -w /host_compiler_prefix/ third_party/gpus/cuda_configure.bzl - - default - use python && python_copy_sources - - use cuda && cuda_add_sandbox -} - -src_configure() { - export JAVA_HOME=$(java-config --jre-home) # so keepwork works - export KERAS_HOME="${T}/.keras" # otherwise sandbox violation writing ~/.keras - - do_configure() { - export CC_OPT_FLAGS=" " - export TF_ENABLE_XLA=$(usex xla 1 0) - export TF_NEED_OPENCL_SYCL=0 - export TF_NEED_OPENCL=0 - export TF_NEED_COMPUTECPP=0 - export TF_NEED_ROCM=0 - export TF_NEED_MPI=$(usex mpi 1 0) - export TF_SET_ANDROID_WORKSPACE=0 - - if use python; then - export PYTHON_BIN_PATH="${PYTHON}" - export PYTHON_LIB_PATH="$(python_get_sitedir)" - else - export PYTHON_BIN_PATH="$(which python)" - export PYTHON_LIB_PATH="$(python -c 'from distutils.sysconfig import *; print(get_python_lib())')" - fi - - export TF_NEED_CUDA=$(usex cuda 1 0) - export TF_DOWNLOAD_CLANG=0 - export TF_CUDA_CLANG=0 - export TF_NEED_TENSORRT=0 # $(usex cuda 1 0) - if use cuda; then - export TF_CUDA_PATHS="${EPREFIX}/opt/cuda" - export GCC_HOST_COMPILER_PATH="$(cuda_gccdir)/$(tc-getCC)" - export TF_CUDA_VERSION="$(cuda_toolkit_version)" - export TF_CUDNN_VERSION="$(cuda_cudnn_version)" - einfo "Setting CUDA version: $TF_CUDA_VERSION" - einfo "Setting CUDNN version: $TF_CUDNN_VERSION" - - if [[ $(cuda-config -s) != *$(gcc-version)* ]]; then - ewarn "TensorFlow is being built with Nvidia CUDA support. Your default compiler" - ewarn "version is not supported by the currently installed CUDA. TensorFlow will" - ewarn "instead be compiled using: ${GCC_HOST_COMPILER_PATH}." - ewarn "If the build fails with linker errors try rebuilding the relevant" - ewarn "dependencies using the same compiler version." - fi - - if [[ -z "$TF_CUDA_COMPUTE_CAPABILITIES" ]]; then - ewarn "WARNING: TensorFlow is being built with its default CUDA compute capabilities: 3.5 and 7.0." - ewarn "These may not be optimal for your GPU." - ewarn "" - ewarn "To configure TensorFlow with the CUDA compute capability that is optimal for your GPU," - ewarn "set TF_CUDA_COMPUTE_CAPABILITIES in your make.conf, and re-emerge tensorflow." - ewarn "For example, to use CUDA capability 7.5 & 3.5, add: TF_CUDA_COMPUTE_CAPABILITIES=7.5,3.5" - ewarn "" - ewarn "You can look up your GPU's CUDA compute capability at https://developer.nvidia.com/cuda-gpus" - ewarn "or by running /opt/cuda/extras/demo_suite/deviceQuery | grep 'CUDA Capability'" - fi - fi - - # com_googlesource_code_re2 weird branch using absl, doesnt work with released re2 - # com_google_protobuf is disabled due to https://github.com/tensorflow/tensorflow/issues/61593 - local SYSLIBS=( - absl_py - astor_archive - astunparse_archive - boringssl - com_github_googlecloudplatform_google_cloud_cpp - com_github_grpc_grpc - com_google_absl - # com_google_protobuf - curl - cython - dill_archive - double_conversion - flatbuffers - functools32_archive - gast_archive - gif - hwloc - icu - jsoncpp_git - libjpeg_turbo - nasm - nsync - org_sqlite - pasta - png - pybind11 - six_archive - snappy - tblib_archive - termcolor_archive - typing_extensions_archive - wrapt - zlib - ) - - export TF_SYSTEM_LIBS="${SYSLIBS[@]}" - export TF_IGNORE_MAX_BAZEL_VERSION=1 - - # This is not autoconf - ./configure || die - - echo 'build --config=noaws --config=nohdfs --config=nonccl' >> .bazelrc || die - echo 'build --define tensorflow_mkldnn_contraction_kernel=0' >> .bazelrc || die - echo "build --action_env=KERAS_HOME=\"${T}/.keras\"" >> .bazelrc || die - echo "build --host_action_env=KERAS_HOME=\"${T}/.keras\"" >> .bazelrc || die - - for cflag in $($(tc-getPKG_CONFIG) jsoncpp --cflags) - do - echo "build --copt=\"${cflag}\"" >> .bazelrc || die - echo "build --host_copt=\"${cflag}\"" >> .bazelrc || die - done - } - if use python; then - python_foreach_impl run_in_build_dir do_configure - else - do_configure - fi -} - -src_compile() { - export JAVA_HOME=$(java-config --jre-home) # so keepwork works - export KERAS_HOME="${T}/.keras" # otherwise sandbox violation writing ~/.keras - - if use python; then - python_setup - BUILD_DIR="${S}-${EPYTHON/./_}" - cd "${BUILD_DIR}" || die - fi - - # fail early if any deps are missing - ebazel build -k --nobuild \ - //tensorflow:libtensorflow_framework.so \ - //tensorflow:libtensorflow.so \ - //tensorflow:libtensorflow_cc.so \ - $(usex python '//tensorflow/tools/pip_package:build_pip_package' '') - - ebazel build \ - //tensorflow:libtensorflow_framework.so \ - //tensorflow:libtensorflow.so - ebazel build //tensorflow:libtensorflow_cc.so - ebazel build //tensorflow:install_headers - ebazel shutdown - - do_compile() { - ebazel build //tensorflow/tools/pip_package:build_pip_package - ebazel shutdown - } - BUILD_DIR="${S}" - cd "${BUILD_DIR}" || die - use python && python_foreach_impl run_in_build_dir do_compile -} - -src_install() { - local i l - export JAVA_HOME=$(java-config --jre-home) # so keepwork works - export KERAS_HOME="${T}/.keras" # otherwise sandbox violation writing ~/.keras - - do_install() { - einfo "Installing ${EPYTHON} files" - local srcdir="${T}/src-${MULTIBUILD_VARIANT}" - mkdir -p "${srcdir}" || die - bazel-bin/tensorflow/tools/pip_package/build_pip_package --src "${srcdir}" || die - cd "${srcdir}" || die - esetup.py install - - # libtensorflow_framework.so and libtensorflow_cc.so is in /usr/lib already - rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_framework.so* || die - rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_cc.so* || die - python_optimize - } - - if use python; then - python_foreach_impl run_in_build_dir do_install - - # Symlink to python-exec scripts - for i in "${ED}"/usr/lib/python-exec/*/*; do - n="${i##*/}" - [[ -e "${ED}/usr/bin/${n}" ]] || dosym ../lib/python-exec/python-exec2 "/usr/bin/${n}" - done - - python_setup - local BUILD_DIR="${S}-${EPYTHON/./_}" - cd "${BUILD_DIR}" || die - fi - - einfo "Installing headers" - insinto /usr/include/${PN}/ - doins -r bazel-bin/tensorflow/include/* - - einfo "Installing libs" - # Generate pkg-config file - ${PN}/c/generate-pc.sh --prefix="${EPREFIX}"/usr --libdir=$(get_libdir) --version=${MY_PV} || die - insinto /usr/$(get_libdir)/pkgconfig - doins ${PN}.pc ${PN}_cc.pc - - for l in libtensorflow{,_framework,_cc}.so; do - patchelf --add-rpath '/opt/cuda/lib64' bazel-bin/tensorflow/${l} - dolib.so bazel-bin/tensorflow/${l} - dolib.so bazel-bin/tensorflow/${l}.$(ver_cut 1) - dolib.so bazel-bin/tensorflow/${l}.$(ver_cut 1-3) - done - - einstalldocs - - # Workaround for https://bugs.gentoo.org/831927 - export MAKEOPTS="-j1" -} |