Skip to content

Commit

Permalink
Use bazel install
Browse files Browse the repository at this point in the history
Signed-off-by: Yong Tang <[email protected]>
  • Loading branch information
yongtang committed Jan 10, 2020
1 parent 397511b commit 28ef79d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ else
export BUILD_TARGET="//tensorflow/tools/pip_package:build_pip_package //tensorflow:libtensorflow.so //tensorflow:libtensorflow_cc.so"
fi

# Bazel install
curl -sSOL https://github.com/bazelbuild/bazel/releases/download/0.29.1/bazel-0.29.1-dist.zip
(mkdir bazel-build && cd bazel-build && ../unzip bazel-0.29.1-dist.zip && ./compile.sh && chmod +x bazel && ./bazel version)


# Python settings
export PYTHON_BIN_PATH=${PYTHON}
export PYTHON_LIB_PATH=${SP_DIR}
Expand Down
4 changes: 3 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ requirements:
build:
- {{ compiler('c') }} # [linux]
- {{ compiler('cxx') }} # [linux]
- bazel >=0.27.1,<=0.29.1 # [linux]
#- bazel >=0.27.1,<=0.29.1 # [linux]
- nasm # [linux]
host:
# conda build requirements
Expand All @@ -59,6 +59,8 @@ requirements:
- zlib # [linux]
- libpng # [linux]
- libcurl # [linux]
- unzip # [linux]
- openjdk # [linux]
- nsync # [linux]
- numpy 1.16.1
- six >=1.10.0
Expand Down

0 comments on commit 28ef79d

Please sign in to comment.