commit:     f10f76acf38ba9c7df5d6437aa8ad93732aad977
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 29 23:51:42 2020 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Tue Apr  7 03:04:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f10f76ac

sci-libs/tensorflow: replace python_export with python_get_sitedir

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 sci-libs/tensorflow/tensorflow-1.15.0.ebuild    | 8 +++-----
 sci-libs/tensorflow/tensorflow-2.0.0.ebuild     | 8 +++-----
 sci-libs/tensorflow/tensorflow-2.1.0.ebuild     | 8 +++-----
 sci-libs/tensorflow/tensorflow-2.2.0_rc2.ebuild | 8 +++-----
 4 files changed, 12 insertions(+), 20 deletions(-)

diff --git a/sci-libs/tensorflow/tensorflow-1.15.0.ebuild 
b/sci-libs/tensorflow/tensorflow-1.15.0.ebuild
index 7844e3a1a28..8190ff5d464 100644
--- a/sci-libs/tensorflow/tensorflow-1.15.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-1.15.0.ebuild
@@ -189,9 +189,8 @@ src_configure() {
                export TF_SET_ANDROID_WORKSPACE=0
 
                if use python; then
-                       python_export PYTHON_SITEDIR
                        export PYTHON_BIN_PATH="${PYTHON}"
-                       export PYTHON_LIB_PATH="${PYTHON_SITEDIR}"
+                       export PYTHON_LIB_PATH="$(python_get_sitedir)"
                else
                        export PYTHON_BIN_PATH="$(which python)"
                        export PYTHON_LIB_PATH="$(python -c 'from 
distutils.sysconfig import *; print(get_python_lib())')"
@@ -320,9 +319,8 @@ src_install() {
                esetup.py install
 
                # libtensorflow_framework.so is in /usr/lib already
-               python_export PYTHON_SITEDIR PYTHON_SCRIPTDIR
-               rm -f "${D}/${PYTHON_SITEDIR}"/${PN}/lib${PN}_framework.so* || 
die
-               rm -f 
"${D}/${PYTHON_SITEDIR}"/${PN}_core/lib${PN}_framework.so* || die
+               rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_framework.so* 
|| die
+               rm -f 
"${D}/$(python_get_sitedir)"/${PN}_core/lib${PN}_framework.so* || die
                python_optimize
        }
 

diff --git a/sci-libs/tensorflow/tensorflow-2.0.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.0.0.ebuild
index 902eac64ba8..4e04d4e51c6 100644
--- a/sci-libs/tensorflow/tensorflow-2.0.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.0.0.ebuild
@@ -188,9 +188,8 @@ src_configure() {
                export TF_SET_ANDROID_WORKSPACE=0
 
                if use python; then
-                       python_export PYTHON_SITEDIR
                        export PYTHON_BIN_PATH="${PYTHON}"
-                       export PYTHON_LIB_PATH="${PYTHON_SITEDIR}"
+                       export PYTHON_LIB_PATH="$(python_get_sitedir)"
                else
                        export PYTHON_BIN_PATH="$(which python)"
                        export PYTHON_LIB_PATH="$(python -c 'from 
distutils.sysconfig import *; print(get_python_lib())')"
@@ -319,9 +318,8 @@ src_install() {
                esetup.py install
 
                # libtensorflow_framework.so is in /usr/lib already
-               python_export PYTHON_SITEDIR PYTHON_SCRIPTDIR
-               rm -f "${D}/${PYTHON_SITEDIR}"/${PN}/lib${PN}_framework.so* || 
die
-               rm -f 
"${D}/${PYTHON_SITEDIR}"/${PN}_core/lib${PN}_framework.so* || die
+               rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_framework.so* 
|| die
+               rm -f 
"${D}/$(python_get_sitedir)"/${PN}_core/lib${PN}_framework.so* || die
                python_optimize
        }
 

diff --git a/sci-libs/tensorflow/tensorflow-2.1.0.ebuild 
b/sci-libs/tensorflow/tensorflow-2.1.0.ebuild
index ff79ebeaaeb..4f7b9c8ecf7 100644
--- a/sci-libs/tensorflow/tensorflow-2.1.0.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.1.0.ebuild
@@ -194,9 +194,8 @@ src_configure() {
                export TF_SET_ANDROID_WORKSPACE=0
 
                if use python; then
-                       python_export PYTHON_SITEDIR
                        export PYTHON_BIN_PATH="${PYTHON}"
-                       export PYTHON_LIB_PATH="${PYTHON_SITEDIR}"
+                       export PYTHON_LIB_PATH="$(python_get_sitedir)"
                else
                        export PYTHON_BIN_PATH="$(which python)"
                        export PYTHON_LIB_PATH="$(python -c 'from 
distutils.sysconfig import *; print(get_python_lib())')"
@@ -326,9 +325,8 @@ src_install() {
                esetup.py install
 
                # libtensorflow_framework.so is in /usr/lib already
-               python_export PYTHON_SITEDIR PYTHON_SCRIPTDIR
-               rm -f "${D}/${PYTHON_SITEDIR}"/${PN}/lib${PN}_framework.so* || 
die
-               rm -f 
"${D}/${PYTHON_SITEDIR}"/${PN}_core/lib${PN}_framework.so* || die
+               rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_framework.so* 
|| die
+               rm -f 
"${D}/$(python_get_sitedir)"/${PN}_core/lib${PN}_framework.so* || die
                python_optimize
        }
 

diff --git a/sci-libs/tensorflow/tensorflow-2.2.0_rc2.ebuild 
b/sci-libs/tensorflow/tensorflow-2.2.0_rc2.ebuild
index 019244a3ce2..c0ab709f7b9 100644
--- a/sci-libs/tensorflow/tensorflow-2.2.0_rc2.ebuild
+++ b/sci-libs/tensorflow/tensorflow-2.2.0_rc2.ebuild
@@ -196,9 +196,8 @@ src_configure() {
                export TF_SET_ANDROID_WORKSPACE=0
 
                if use python; then
-                       python_export PYTHON_SITEDIR
                        export PYTHON_BIN_PATH="${PYTHON}"
-                       export PYTHON_LIB_PATH="${PYTHON_SITEDIR}"
+                       export PYTHON_LIB_PATH="$(python_get_sitedir)"
                else
                        export PYTHON_BIN_PATH="$(which python)"
                        export PYTHON_LIB_PATH="$(python -c 'from 
distutils.sysconfig import *; print(get_python_lib())')"
@@ -327,9 +326,8 @@ src_install() {
                esetup.py install
 
                # libtensorflow_framework.so is in /usr/lib already
-               python_export PYTHON_SITEDIR PYTHON_SCRIPTDIR
-               rm -f "${D}/${PYTHON_SITEDIR}"/${PN}/lib${PN}_framework.so* || 
die
-               rm -f 
"${D}/${PYTHON_SITEDIR}"/${PN}_core/lib${PN}_framework.so* || die
+               rm -f "${D}/$(python_get_sitedir)"/${PN}/lib${PN}_framework.so* 
|| die
+               rm -f 
"${D}/$(python_get_sitedir)"/${PN}_core/lib${PN}_framework.so* || die
                python_optimize
        }
 

Reply via email to