Date: Saturday, January 27, 2018 @ 17:52:14
  Author: svenstaro
Revision: 287510

Prepare 1.5.0

Modified:
  tensorflow/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-01-27 17:33:45 UTC (rev 287509)
+++ PKGBUILD    2018-01-27 17:52:14 UTC (rev 287510)
@@ -4,9 +4,9 @@
 
 pkgbase=tensorflow
 pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda 
python-tensorflow python-tensorflow-opt python-tensorflow-cuda 
python-tensorflow-opt-cuda)
-pkgver=1.4.1
-_pkgver=1.4.1
-pkgrel=3
+pkgver=1.5.0
+_pkgver=1.5.0
+pkgrel=1
 pkgdesc="Library for computation using data flow graphs for scalable machine 
learning"
 url="https://www.tensorflow.org/";
 license=('APACHE')
@@ -15,9 +15,12 @@
              'cudnn' 'python-pip' 'python-wheel' 'python-setuptools')
 optdepends=('tensorboard: Tensorflow visualization toolkit')
 source=("https://github.com/tensorflow/tensorflow/archive/v${_pkgver}.tar.gz";)
-sha512sums=('618e0a740c79ad9582944a827f43bbdafb1d51a1e621f6f5e5cc7f3f18eb239f0656f81fbbae20c69029a1fa8b4bab56ff5be0907f073eccbe4732e52c7511d6')
+sha512sums=('63240d72b9946db29279800b1081adc4cc08b6cd7dc35155a529cc335bfc1dd16fb525fb6047f6cc0dcec547a54e7e100698a176ee93f5633965cfab2a8ad9eb')
 
 prepare() {
+  # Trick tensorflow into not building Android
+  echo "android_sdk_repository" > tensorflow-${_pkgver}/WORKSPACE
+
   cp -r tensorflow-${_pkgver} tensorflow-${_pkgver}-opt
   cp -r tensorflow-${_pkgver} tensorflow-${_pkgver}-cuda
   cp -r tensorflow-${_pkgver} tensorflow-${_pkgver}-opt-cuda
@@ -25,6 +28,7 @@
   export PYTHON_BIN_PATH=/usr/bin/python
   export USE_DEFAULT_PYTHON_LIB_PATH=1
   export TF_NEED_JEMALLOC=1
+  export TF_NEED_OPENCL_SYCL=0
   export TF_NEED_GCP=0
   export TF_NEED_HDFS=0
   export TF_NEED_S3=0
@@ -36,12 +40,12 @@
 }
 
 build() {
-  _bazel_09_fix="--incompatible_load_argument_is_label=false"
+  # _bazel_09_fix="--incompatible_load_argument_is_label=false"
   cd ${srcdir}/tensorflow-${_pkgver}
   export CC_OPT_FLAGS="-march=x86-64"
   export TF_NEED_CUDA=0
   ./configure
-  bazel build --config=opt //tensorflow:libtensorflow.so 
//tensorflow/tools/pip_package:build_pip_package ${_bazel_09_fix}
+  bazel build --config=opt //tensorflow:libtensorflow.so 
//tensorflow/tools/pip_package:build_pip_package# ${_bazel_09_fix}
   bazel-bin/tensorflow/tools/pip_package/build_pip_package ${srcdir}/tmp
 
   cd ${srcdir}/tensorflow-${_pkgver}-cuda

Reply via email to