[arch-commits] Commit in tensorflow/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Fri May 5 10:23:57 UTC 2017
Date: Friday, May 5, 2017 @ 10:23:56
Author: svenstaro
Revision: 227128
upgpkg: tensorflow 1.1.0-1
Pushing tensorflow
Modified:
tensorflow/trunk/PKGBUILD
----------+
PKGBUILD | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-05 10:18:51 UTC (rev 227127)
+++ PKGBUILD 2017-05-05 10:23:56 UTC (rev 227128)
@@ -12,7 +12,7 @@
arch=('x86_64')
provides=('tensorflow' 'libtensorflow')
conflicts=('tensorflow' 'libtensorflow')
-makedepends=('git' 'bazel' 'python-numpy' 'gcc5' 'cuda' 'cudnn')
+makedepends=('git' 'bazel' 'python-numpy' 'gcc5' 'cuda' 'cudnn' 'python-pip' 'python-wheel' 'python-setuptools')
optdepends=('cuda: GPU support'
'cudnn: GPU support')
source=("https://github.com/tensorflow/tensorflow/archive/v${pkgver}.tar.gz")
@@ -48,8 +48,7 @@
cd tensorflow-${pkgver}
./configure
- bazel build --config=opt --config=cuda //tensorflow:libtensorflow.so
- bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
+ bazel build --config=opt --config=cuda //tensorflow:libtensorflow.so //tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package ${srcdir}/tmp
}
@@ -64,11 +63,10 @@
package_python-tensorflow() {
cd tensorflow-${pkgver}
- WHEEL_PACKAGE=`find $srcdir/tmp -name "tensor*.whl"`
+ WHEEL_PACKAGE=$(find ${srcdir}/tmp -name "tensor*.whl")
pip install --ignore-installed --upgrade --root $pkgdir/ $WHEEL_PACKAGE --no-dependencies
find ${pkgdir} -name __pycache__ -exec rm -r {} +
- pip install ${srcdir}/tmp/tensorflow-${pkgver}-py2-none-any.whl
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
More information about the arch-commits
mailing list