Browse Source

Workaround tensorflow/tensorflow#44485 (#627)

Lutz Roeder 5 years ago
parent
commit
6b3073fe1b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tools/tf

+ 8 - 0
tools/tf

@@ -45,6 +45,10 @@ sync() {
 
 install() {
     bold "tf install"
+    if [ "$(${python} -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" = "3.9" ]; then
+        echo "- python 3.9 [skip]"
+        return
+    fi
     if [ "$(uname -sm)" = "Darwin arm64" ]; then
         echo "- arm64 [skip]"
         return
@@ -78,6 +82,10 @@ schema() {
 
 metadata() {
     bold "tf metadata"
+    if [ "$(${python} -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" = "3.9" ]; then
+        echo "- python 3.9 [skip]"
+        return
+    fi
     if [ "$(uname -sm)" = "Darwin arm64" ]; then
         echo "- arm64 [skip]"
         return