diff --git a/tensorflow/make_py_wheel_mac.sh b/tensorflow/make_py_wheel_mac.sh index 07e90439..394af6f4 100755 --- a/tensorflow/make_py_wheel_mac.sh +++ b/tensorflow/make_py_wheel_mac.sh @@ -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()))') ) @@ -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.