Skip to content

Commit

Permalink
Update make_py_wheel_mac.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taku910 authored Mar 22, 2019
1 parent 52c28d5 commit c58588f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tensorflow/make_py_wheel_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ build_tf_wrapper() {
# Builds _sentencepiece_processor_ops.so
pip install tensorflow${pkg_name} --upgrade --no-cache-dir -I

if [ "$1" = "1.31.1" ]; then
pip uninstall numpy -y || true
pip uninstall numpy -y || true
pip uninstall numpy -y || true
pip install numpy --upgrade --no-cache-dir -I
fi
pip uninstall numpy -y || true
pip uninstall numpy -y || true
pip uninstall numpy -y || true
pip install numpy --upgrade --no-cache-dir -I

TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') )
TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )
Expand Down Expand Up @@ -75,9 +73,9 @@ build() {
build_tf_wrapper "1.12.0"
build_tf_wrapper "1.11.0"
build_tf_wrapper "1.10.0"
build_tf_wrapper "1.9.0"
build_tf_wrapper "1.8.0"
build_tf_wrapper "1.7.0"
#build_tf_wrapper "1.9.0"
#build_tf_wrapper "1.8.0"
#build_tf_wrapper "1.7.0"

# Builds Python manylinux wheel package.
# Platform name is determined by the tensorflow pip package.
Expand Down

0 comments on commit c58588f

Please sign in to comment.