With the version 1.13* ebuilds there is no easy way to get tensorflow installed with the python USE flag enabled as tensorflow depends on tensorflow-estimator and vice versa: [nomerge ] sci-libs/tensorflow-1.13.0_rc2::gentoo USE="cuda python* -mpi" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 -avx -avx2 -fma3 -fma4 -sse4_2" PYTHON_TARGETS="python2_7 python3_6 -python3_5" [ebuild N ~] sci-libs/tensorflow-estimator-1.13.0_rc0::gentoo PYTHON_TARGETS="python2_7 python3_6 -python3_5" 0 KiB [ebuild R ~] sci-libs/tensorflow-1.13.0_rc2::gentoo USE="cuda python* -mpi" CPU_FLAGS_X86="sse sse2 sse3 sse4_1 -avx -avx2 -fma3 -fma4 -sse4_2" PYTHON_TARGETS="python2_7 python3_6 -python3_5" 0 KiB Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 KiB * Error: circular dependencies: (sci-libs/tensorflow-estimator-1.13.0_rc0:0/0::gentoo, ebuild scheduled for merge) depends on (sci-libs/tensorflow-1.13.0_rc2:0/0::gentoo, ebuild scheduled for merge) (buildtime) (sci-libs/tensorflow-estimator-1.13.0_rc0:0/0::gentoo, ebuild scheduled for merge) (buildtime) * Note that circular dependencies can often be avoided by temporarily * disabling USE flags that trigger optional dependencies. I tried by first installing tensorflow without python which (quite obviously) didn't work, I tried with --nodeps which also didn't work because of (again quite obviously) missing dependencies. I only got it to install by manually installing dependencies, installing tensorflow with --nodeps followed by installing the missing dependencies. The fact that this actually worked makes me suspect that tensorflow-estimator shouldn't be in DEPEND at all, just in RDEPEND maybe? I might be wrong though and I don't know if it would resolve the circular dependency For those who are bitten by this and want to quickly resolve it: emerge -1a flatbuffers absl-py astor gast numpy google-pasta protobuf-python six dev-python/termcolor grpcio google-cloud-cpp keras-applications keras-preprocessing python-enum34 emerge --nodeps -a tensorflow emerge -uaD tensorflow
This affects me too. I've made a tensorflow ebuild in a local overlay with dependency on tensorflow-estimator removed, will see what happens when I get the rest of the problems with this dep tree sorted out
*** Bug 679714 has been marked as a duplicate of this bug. ***
Yeah looks like this needs to be in PDEPEND instead. Fixed in tensorflow-1.13.1 and tensorflow-estimator-1.13.0
*** Bug 681596 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61d7366d7af761835634c5f3cc9c4c89dd74c171 commit 61d7366d7af761835634c5f3cc9c4c89dd74c171 Author: Jason Zaman <perfinion@gentoo.org> AuthorDate: 2019-03-30 14:21:37 +0000 Commit: Jason Zaman <perfinion@gentoo.org> CommitDate: 2019-04-05 15:38:29 +0000 sci-libs/tensorflow: bump 1.13.1 Closes: https://bugs.gentoo.org/682000 Closes: https://bugs.gentoo.org/678920 Signed-off-by: Jason Zaman <perfinion@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11 sci-libs/tensorflow/Manifest | 1 + sci-libs/tensorflow/metadata.xml | 1 - sci-libs/tensorflow/tensorflow-1.13.1.ebuild | 326 +++++++++++++++++++++++++++ 3 files changed, 327 insertions(+), 1 deletion(-)