From: "Martin Mokrejs" <mmokrejs@fold.natur.cuni.cz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/tensorflow/
Date: Wed, 18 Apr 2018 17:15:31 +0000 (UTC) [thread overview]
Message-ID: <1524071722.7a72b8eabc3bb168f4c817c301c61d3b8ebb4197.mmokrejs@gentoo> (raw)
commit: 7a72b8eabc3bb168f4c817c301c61d3b8ebb4197
Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Wed Apr 18 17:15:22 2018 +0000
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Wed Apr 18 17:15:22 2018 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7a72b8ea
sci-libs/tensorflow: try to determine site-packages path properly
This could support multiple python installations, improving further changes from
https://github.com/gentoo/sci/issues/862
However, still untested by me due to sandbox violations, sorry.
Package-Manager: Portage-2.3.28, Repoman-2.3.9
sci-libs/tensorflow/tensorflow-1.7.0.ebuild | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/sci-libs/tensorflow/tensorflow-1.7.0.ebuild b/sci-libs/tensorflow/tensorflow-1.7.0.ebuild
index 75f5d499d..758872b99 100644
--- a/sci-libs/tensorflow/tensorflow-1.7.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-1.7.0.ebuild
@@ -77,9 +77,9 @@ src_compile() {
# huh, by default tensorflow links static libs? See BUILD file
# set framework_shared_object=true somehow
if use cuda; then
- opt="--config=cuda"
+ local opt="--config=cuda"
else
- opt=""
+ local opt=""
fi
bazel build --config=opt ${opt} /tensorflow/tools/pip_package:build_pip_package || die
bazel-bin/tensorflow/tools/pip_package/build_pip_package tensorflow_pkg || die
@@ -97,8 +97,14 @@ src_test() {
src_install() {
python_install() {
- python_copy_sources tensorflow_pkg/${P}.data/purelib/tensorflow/
- python_copy_sources tensorflow_pkg/${P}.dist-info
+ # steal site-package path determination from sci-mathematics/z3
+ local PYTHON_SITEDIR
+ python_export PYTHON_SITEDIR
+ cp -av tensorflow_pkg/"${P}".data/purelib/tensorflow/ "$PYTHON_SITEDIR" || die
+ cp -av tensorflow_pkg/"${P}".dist-info "$PYTHON_SITEDIR" || die
+ # mkdir -p "${D}/usr/$(get_libdir)/python3.6/site-packages" || die
+ # cp -av tensorflow_pkg/"${P}".data/purelib/tensorflow/ "${ED}/usr/$(get_libdir)/python3.6/site-packages/" || die
+ # cp -av tensorflow_pkg/"${P}".dist-info "${ED}/usr/$(get_libdir)/python3.6/site-packages/" || die
}
python_foreach_impl python_install
einstalldocs
next reply other threads:[~2018-04-18 17:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 17:15 Martin Mokrejs [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-09-26 17:35 [gentoo-commits] proj/sci:master commit in: sci-libs/tensorflow/ Aisha Tammy
2018-05-02 23:20 Mark Wright
2018-05-02 5:01 Mark Wright
2018-05-01 11:43 Mark Wright
2018-05-01 10:26 Mark Wright
2018-04-18 16:53 Martin Mokrejs
2018-04-09 16:56 Martin Mokrejs
2018-04-06 23:22 Martin Mokrejs
2018-04-02 12:45 Justin Lecher
2018-01-29 15:34 Martin Mokrejs
2018-01-29 15:29 Martin Mokrejs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1524071722.7a72b8eabc3bb168f4c817c301c61d3b8ebb4197.mmokrejs@gentoo \
--to=mmokrejs@fold.natur.cuni.cz \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox