Skip to content
Snippets Groups Projects
Commit 5a1d5bb2 authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

move the generated wheel file into a non volatile space

parent bd131640
No related branches found
Tags v2.0
No related merge requests found
#!/bin/sh #!/bin/sh
mkdir -p /tmp/tensorflow_pkg 2>> /dev/null mkdir -p /build/tensorflow_pkg 2>> /dev/null
cd /build/tensorflow-1.0.1 && \ cd /build/tensorflow-1.0.1 && \
./configure < /tmp/tf-c6.ans && \ ./configure < /tmp/tf-c6.ans && \
bazel build --linkopt='-lrt' --config=opt //tensorflow/tools/pip_package:build_pip_package && \ bazel build --linkopt='-lrt' --config=opt //tensorflow/tools/pip_package:build_pip_package && \
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg bazel-bin/tensorflow/tools/pip_package/build_pip_package /build/tensorflow_pkg
cd / && \ cd / && \
pip install --user /tmp/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_x86_64.whl pip install --user /build/tensorflow_pkg/tensorflow-1.0.1-cp27-none-linux_x86_64.whl
python <<EOF python <<EOF
# Creates a graph. # Creates a graph.
import tensorflow as tf import tensorflow as tf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment