commit:     4f0a1a643c32e762f1cf8f07cc14da184788080d
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  8 04:51:48 2020 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Jun  8 04:55:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0a1a64

sci-libs/tensorflow-estimator: fix compile error

The bazel build step used the incorrect python, so duplicate the sources
and build multiple times

Closes: https://bugs.gentoo.org/725856
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 ....2.0.ebuild => tensorflow-estimator-2.2.0-r1.ebuild} | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0.ebuild 
b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0-r1.ebuild
similarity index 80%
rename from sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0.ebuild
rename to sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0-r1.ebuild
index 32a54df07f9..20a13ee1c5a 100644
--- a/sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0.ebuild
+++ b/sci-libs/tensorflow-estimator/tensorflow-estimator-2.2.0-r1.ebuild
@@ -43,22 +43,27 @@ src_unpack() {
 src_prepare() {
        bazel_setup_bazelrc
        default
+       python_copy_sources
 }
 
 src_compile() {
        export JAVA_HOME=$(java-config --jre-home)
 
-       ebazel build //tensorflow_estimator/tools/pip_package:build_pip_package
-       ebazel shutdown
+       do_compile() {
+               ebazel build 
//tensorflow_estimator/tools/pip_package:build_pip_package
+               ebazel shutdown
 
-       local srcdir="${T}/src"
-       mkdir -p "${srcdir}" || die
-       bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package 
--src "${srcdir}" || die
+               local srcdir="${T}/src-${EPYTHON/./_}"
+               mkdir -p "${srcdir}" || die
+               
bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package --src 
"${srcdir}" || die
+       }
+
+       python_foreach_impl run_in_build_dir do_compile
 }
 
 src_install() {
        do_install() {
-               cd "${T}/src" || die
+               cd "${T}/src-${EPYTHON/./_}" || die
                esetup.py install
                python_optimize
        }

Reply via email to