Selaa lähdekoodia

Skip scripts on macOS arm64 (#627)

Lutz Roeder 5 vuotta sitten
vanhempi
sitoutus
7625f7e8b3
4 muutettua tiedostoa jossa 32 lisäystä ja 0 poistoa
  1. 8 0
      tools/onnx
  2. 8 0
      tools/pytorch
  3. 8 0
      tools/sklearn
  4. 8 0
      tools/tf

+ 8 - 0
tools/onnx

@@ -36,6 +36,10 @@ sync() {
 
 install() {
     bold "onnx install"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     case "${OSTYPE}" in
         linux*)
             [ -x "$(command -v cmake)" ] || sudo apt install -y cmake
@@ -88,6 +92,10 @@ schema() {
 
 metadata() {
     bold "onnx metadata"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     [[ $(grep -U $'\x0D' ./source/onnx-metadata.json) ]] && crlf=1
     venv
     export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

+ 8 - 0
tools/pytorch

@@ -40,6 +40,10 @@ sync() {
 
 install() {
     bold "pytorch install"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     venv
     ${python} -m pip install --quiet --upgrade future protobuf scipy
     ${python} -m pip install --quiet --upgrade --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
@@ -57,6 +61,10 @@ schema() {
 
 metadata() {
     bold "pytorch metadata"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     venv
     export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
     if [[ $(grep -U $'\x0D' ./source/pytorch-metadata.json) ]]; then crlf=1; else crlf=; fi

+ 8 - 0
tools/sklearn

@@ -39,6 +39,10 @@ sync() {
 
 install() {
     bold "sklearn install"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     venv
     ${python} -m pip install --quiet --use-feature=2020-resolver six cython pytest flake8 numpy scipy pylint astroid
     ${python} -m pip install --quiet --use-feature=2020-resolver --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
@@ -48,6 +52,10 @@ install() {
 
 metadata() {
     bold "sklearn metadata"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     [[ $(grep -U $'\x0D' ./source/sklearn-metadata.json) ]] && crlf=1
     venv
     export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

+ 8 - 0
tools/tf

@@ -44,6 +44,10 @@ sync() {
 
 install() {
     bold "tf install"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     venv
     ${python} -m pip install --quiet --upgrade --use-feature=2020-resolver wheel
     ${python} -m pip install --quiet --upgrade --use-feature=2020-resolver tf-nightly
@@ -73,6 +77,10 @@ schema() {
 
 metadata() {
     bold "tf metadata"
+    if [ "$(uname -ms)" = "Darwin arm64" ]; then
+        echo "- arm64 [skip]"
+        return
+    fi
     venv
     if [[ $(grep -U $'\x0D' ./source/tf-metadata.json) ]]; then crlf=1; else crlf=; fi
     export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python