aboutsummaryrefslogtreecommitdiff
path: root/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow_io_in_container/templates/build_tfio_binaries.sh.j2
blob: bdc441c2099208b8f70d69474ba677061681e59d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -xe
source ./venv-{{ py_ver }}/bin/activate
python3 -m pip install --extra-index-url {{ pip_extra_index_url }} \
    tensorflow_aarch64=={{ tensorflow_version }}
cd /tmp/workspace/io-{{ tensorflow_io_version }}
python3 tools/build/configure.py
bazel build -j {{ ansible_processor_vcpus }} \
    --crosstool_top=//third_party/toolchains/gcc10_manylinux2014_aarch64:toolchain \
    -- //tensorflow_io/...  //tensorflow_io_gcs_filesystem/...
#mkdir -p build
#cp -r bazel-bin/tensorflow_io                 build/tensorflow_io
#cp -r bazel-bin/tensorflow_io_gcs_filesystem  build/tensorflow_io_gcs_filesystem