diff mbox series

[meta-tensorflow,2/14] tensorflow-estimator: remove recipe

Message ID 20260325021719.1526525-3-hongxu.jia@windriver.com
State New
Headers show
Series Upgrade tensorflow from 2.19.0 to 2.21.0 | expand

Commit Message

Hongxu Jia March 25, 2026, 2:17 a.m. UTC
Due to commit [1], remove Estimator from Tensorflow.

[1] https://github.com/tensorflow/tensorflow/commit/aa35dc27617676322972f2fd482ed43a7a7e1d16

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../0001-customize-for-yocto.patch            | 28 ---------
 .../tensorflow/tensorflow-estimator_2.15.0.bb | 57 -------------------
 2 files changed, 85 deletions(-)
 delete mode 100644 recipes-framework/tensorflow/tensorflow-estimator/0001-customize-for-yocto.patch
 delete mode 100644 recipes-framework/tensorflow/tensorflow-estimator_2.15.0.bb
diff mbox series

Patch

diff --git a/recipes-framework/tensorflow/tensorflow-estimator/0001-customize-for-yocto.patch b/recipes-framework/tensorflow/tensorflow-estimator/0001-customize-for-yocto.patch
deleted file mode 100644
index e9b66d5..0000000
--- a/recipes-framework/tensorflow/tensorflow-estimator/0001-customize-for-yocto.patch
+++ /dev/null
@@ -1,28 +0,0 @@ 
-From a1bcf09a43fc44ad5e04c441ee45cc23d16cf7d2 Mon Sep 17 00:00:00 2001
-From: Hongxu Jia <hongxu.jia@windriver.com>
-Date: Wed, 9 Dec 2020 17:59:01 +0800
-Subject: [PATCH] customize for yocto
-
-Upstream-Status: Inappropriate [oe specific]
-
-Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
----
- tensorflow_estimator/tools/pip_package/build_pip_package.sh | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tensorflow_estimator/tools/pip_package/build_pip_package.sh b/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-index d4953a6..e08cd8a 100755
---- a/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-+++ b/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-@@ -38,7 +38,7 @@ function prepare_src() {
- 
-   # Verifies all expected files are in pip.
-   # Creates init files in all directory in pip.
--  python tensorflow_estimator/tools/pip_package/create_pip_helper.py --pip-root "${TMPDIR}/tensorflow_estimator/" --bazel-root "./tensorflow_estimator"
-+  nativepython3 tensorflow_estimator/tools/pip_package/create_pip_helper.py --pip-root "${TMPDIR}/tensorflow_estimator/" --bazel-root "./tensorflow_estimator"
- }
- 
- function build_wheel() {
--- 
-2.18.2
-
diff --git a/recipes-framework/tensorflow/tensorflow-estimator_2.15.0.bb b/recipes-framework/tensorflow/tensorflow-estimator_2.15.0.bb
deleted file mode 100644
index dae3ee2..0000000
--- a/recipes-framework/tensorflow/tensorflow-estimator_2.15.0.bb
+++ /dev/null
@@ -1,57 +0,0 @@ 
-DESCRIPTION = "A high-level TensorFlow API that greatly simplifies machine \
-learning programming."
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=01e86893010a1b87e69a213faa753ebd"
-
-SRC_URI = "git://github.com/tensorflow/estimator.git;branch=r2.15;protocol=https \
-           file://0001-customize-for-yocto.patch \
-          "
-SRCREV = "b5f91f8e4113396f0a5f090d6a52d676271caf48"
-
-inherit python3native bazel tensorflow_ver
-
-DEPENDS += " \
-    python3-pip-native \
-    python3-wheel-native \
-    python3-six-native \
-    python3-protobuf-native \
-    python3-absl-native \
-    python3-astor-native \
-    python3-gast-native \
-    python3-termcolor-native \
-    python3-wrapt-native \
-    python3-opt-einsum-native \
-    python3-astunparse-native \
-    flatbuffers-native \
-    tensorflow-native \
-    tf-keras-native \
-"
-
-do_compile () {
-    unset CC
-    export TMPDIR="${WORKDIR}"
-    export PYTHON_BIN_PATH="${PYTHON}"
-
-    ${BAZEL} build \
-        --subcommands --explain=${T}/explain.log \
-        --verbose_explanations --verbose_failures \
-        --verbose_failures \
-        --python_path="${PYTHON}" \
-        //tensorflow_estimator/tools/pip_package:build_pip_package
-
-    ${S}/bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package \
-        ${WORKDIR}/estimator_pip
-}
-
-do_install () {
-    echo "Installing pip package"
-    install -d ${D}${PYTHON_SITEPACKAGES_DIR}
-    ${STAGING_BINDIR_NATIVE}/pip3 install --disable-pip-version-check -v --no-deps \
-        -t ${D}/${PYTHON_SITEPACKAGES_DIR} --no-cache-dir ${WORKDIR}/estimator_pip/*.whl
-
-    rm -rf ${D}/${PYTHON_SITEPACKAGES_DIR}/tensorflow_estimator-${PV}.dist-info
-}
-
-FILES:${PN} += "${libdir}/*"
-
-BBCLASSEXTEND = "native"