From 7bd77a6744e2cd6d203240181996a998985e0288 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 26 Nov 2022 01:13:45 +0000 Subject: gentoo auto-resync : 26:11:2022 - 01:13:45 --- sci-libs/tensorflow-estimator/Manifest | 3 + ...-Update-setup.py-for-2.11.0-final-release.patch | 25 +++++++ .../tensorflow-estimator-2.11.0.ebuild | 79 ++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch create mode 100644 sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild (limited to 'sci-libs/tensorflow-estimator') diff --git a/sci-libs/tensorflow-estimator/Manifest b/sci-libs/tensorflow-estimator/Manifest index 18dddea22f1d..3d7e758761bf 100644 --- a/sci-libs/tensorflow-estimator/Manifest +++ b/sci-libs/tensorflow-estimator/Manifest @@ -1,5 +1,8 @@ +AUX 0001-Update-setup.py-for-2.11.0-final-release.patch 946 BLAKE2B ac6417e5bc0953ce69a148cfc1d56cbfe46fc2752287dc595457406def376f8cbe5379c0d2e2eb6092a15729c05c8acafa0435c6c82cea8771292953283d1eda SHA512 87cbf6c462c7209cd766c298f7ae869dc89e1b0de56da42ec4ce7e7da2d131683e15abce6be96482c8501116e3a21a4a34b1324d43c6a382956dce8ad705b579 DIST bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip 201360 BLAKE2B 0173a8edb17f344b18e42026e2f8a62a1909d4694ab0be83562b6437a3f1ef38889f069269ddd2308b41062e5f375f791be0d2631a8e52ede668203779813b56 SHA512 2ba1dc316d88947c1d17ec67154c052700e3571b8d03370a9f204cf9fe94a1bd58f93a2c4a3c0b02233ee3250053a4c30a4133b5b38745858c1d04be8c9d973f DIST bazelbuild-rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip 9422 BLAKE2B bbc45c97551ee8126335b611ffca6574dac843d4db9b3221b10d26487f8eecfe38ba0cd67a4039a3ad921c25fea6294c43e4f4e7a57a060a30791acd6c4f9d39 SHA512 ba06242feb711e7fb6e821fd9ac029248b4f3e466fb1acf971d0db8196f3efe4d114ef137acbe4913073f8cbe8ccab4d47d8bafa21b867b2d6a6d57f5a647f0c DIST tensorflow-estimator-2.10.tar.gz 655011 BLAKE2B 465b405bfc5b776bc9722407f0d475b4ce8a520bded4b6f0db4c9fc771b9486a4ef08ae460f2e1c8c4be1d2882b942fff79f7f08a458eaa444f1bb44eb66e91c SHA512 63cdc97d9abf3551a931372ab91e86b1cab761ea7476182ed82ac7c56884d315107b1873376385bcdfc531465c11fe0273aefe8b88e8b333d8e7b54e7d0a09eb +DIST tensorflow-estimator-2.11.0-rc0.tar.gz 655514 BLAKE2B cc73f282a32f657bf507d948210aa981f0867c4898574c61fb5654204fa573ac7bdef16635d202ed3d202ccc9c8915f5613e4149ce6839d59281a38cfd6953f7 SHA512 c473a6db62a0a55f25f8fd5fd7ffb2f2a473261c5a7b3217bd1d8a21a02ab4871793ea57917c6eb9dc9012bd030faf8030702caf3f764983ce526d201866204f EBUILD tensorflow-estimator-2.10.ebuild 1836 BLAKE2B 55f8034fc784c1b671a8c339009bb8499b3e4a8657cd06507ea53ca86b95d14daf2cc052e5434f5626e2e76f22f3b77732eda8204e1f0e05982ed24c153b668c SHA512 32389d89ee4dfd392843cb12dc9e9ddbeaa39b751279325c98c962fcfc6aecca1873074cebba4d8f8852be63b34f174abe7dde1a4ef6e98fafb6a35073107d10 +EBUILD tensorflow-estimator-2.11.0.ebuild 2002 BLAKE2B 2c5ab3e0a364cce3a3422d135a515a3a2c0f7835d86cbe8c13bbb53dc3f4d6816849ea7d49efb0b05f6ed91da255264c82038230b3c9dbfe15a5968b693345d5 SHA512 5bbc1811ffe8d686304e0d712ad418554d3ae2b4a28b908bbd481b83daeddb74246bb8e7707d6b53b0b98d0230b8ba1f5fb7e2e9f93a66a9f1f3a6bc15dec56b MISC metadata.xml 581 BLAKE2B f3c4be0d25d3337871d9fc5f0d2e1e420fd68f45c2a7fbabaab0557f2f323661d4dd1ab847778ccc5a06bfe86a6fcf77bc4f65a04baa8ed569fd868ca8a03009 SHA512 41e7c5f2bce2166ed98259fa86fcf92cb3e2e186e7387a1cc75d630313791fc83e297288ce52ad25655292eb14b28a651dec3cb6b3101c75c327f447b15d6293 diff --git a/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch b/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch new file mode 100644 index 000000000000..3a22052e9845 --- /dev/null +++ b/sci-libs/tensorflow-estimator/files/0001-Update-setup.py-for-2.11.0-final-release.patch @@ -0,0 +1,25 @@ +From bfc826cf6ab1a65c3cf2e28cf9c6300ced56e9f8 Mon Sep 17 00:00:00 2001 +From: Vinila S <106367904+vinila21@users.noreply.github.com> +Date: Fri, 11 Nov 2022 16:55:11 -0800 +Subject: [PATCH] Update setup.py for 2.11.0 final release. + +--- + tensorflow_estimator/tools/pip_package/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tensorflow_estimator/tools/pip_package/setup.py b/tensorflow_estimator/tools/pip_package/setup.py +index b49eff2..fe35b4b 100644 +--- a/tensorflow_estimator/tools/pip_package/setup.py ++++ b/tensorflow_estimator/tools/pip_package/setup.py +@@ -30,7 +30,7 @@ DOCLINES = __doc__.split('\n') + # This version string is semver compatible, but incompatible with pip. + # For pip, we will remove all '-' characters from this string, and use the + # result for pip. +-_VERSION = '2.11.0-rc0' ++_VERSION = '2.11.0' + + REQUIRED_PACKAGES = [ + # We depend on TensorFlow's declared pip dependencies. +-- +2.37.4 + diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild new file mode 100644 index 000000000000..fdf1ef3c5276 --- /dev/null +++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.11.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) +MY_PN="estimator" +MY_PV=${PV}-rc0 +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" +IUSE="" + +bazel_external_uris=" + https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip -> bazelbuild-rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d.zip + 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}-rc0.tar.gz + ${bazel_external_uris}" + +RDEPEND=" + sci-libs/tensorflow[python,${PYTHON_USEDEP}] + sci-libs/keras[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/unzip + dev-java/java-config + >=dev-util/bazel-5.1.1" + +S="${WORKDIR}/${MY_P}" + +DOCS=( CONTRIBUTING.md README.md ) +PATCHES=( + # Tag is missing for v2.11.0, apply version update manually + "${FILESDIR}/0001-Update-setup.py-for-2.11.0-final-release.patch" +) + +src_unpack() { + unpack "${P}-rc0.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 +} -- cgit v1.2.3