-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 892 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
all:
@make compile;
prepare:
brew install bazel || (brew upgrade bazel && brew cleanup bazel);
pip install -U six numpy wheel;
download:
git clone --depth=1 https://github.com/tensorflow/tensorflow || echo "Git clone Error! Please run 'make clean-all' and re-run 'make all'"
compile: prepare download
cd tensorflow && ./configure && \
bazel build --config=opt --local_resources 2048,.5,1.0 //tensorflow/tools/pip_package:build_pip_package && \
rm -rf tmp; mkdir tmp && bazel-bin/tensorflow/tools/pip_package/build_pip_package ./tmp/tensorflow_pkg || \
rm -rf tmp; echo "\nPlease run 'make clean-all' and re-run 'make all'\nOr new a issue at https://github.com/shengyang998/easy_install_tensorflow/issues\n"
clean:
cd tensorflow && bazel clean && rm -rf tmp;
clean-all:
rm -rf ./tensorflow;
install:
pip uninstall tensorflow; pip install ./tensorflow/tmp/tensorflow_pkg/*;