This is an automated email from the ASF dual-hosted git repository. areusch pushed a commit to branch areusch/freeze-dependencies in repository https://gitbox.apache.org/repos/asf/tvm.git
commit 5df483f8bec8f0c88bf3b78f901efc93af730ec7 Author: Andrew Reusch <[email protected]> AuthorDate: Wed May 11 07:59:20 2022 -0700 modify install scripts --- docker/install/ubuntu_install_caffe.sh | 3 - docker/install/ubuntu_install_coreml.sh | 23 ------- docker/install/ubuntu_install_darknet.sh | 29 -------- docker/install/ubuntu_install_mxnet.sh | 23 ------- docker/install/ubuntu_install_oneflow.sh | 25 ------- docker/install/ubuntu_install_onnx.sh | 41 ----------- docker/install/ubuntu_install_paddle.sh | 23 ------- docker/install/ubuntu_install_python.sh | 3 + docker/install/ubuntu_install_python_package.sh | 4 +- docker/install/ubuntu_install_redis.sh | 2 - docker/install/ubuntu_install_sphinx.sh | 33 --------- docker/install/ubuntu_install_tensorflow.sh | 26 ------- .../install/ubuntu_install_tensorflow_aarch64.sh | 8 --- docker/install/ubuntu_install_tflite.sh | 79 ---------------------- docker/install/ubuntu_install_vela.sh | 23 ------- 15 files changed, 6 insertions(+), 339 deletions(-) diff --git a/docker/install/ubuntu_install_caffe.sh b/docker/install/ubuntu_install_caffe.sh index ab71eab54a..6867993c58 100755 --- a/docker/install/ubuntu_install_caffe.sh +++ b/docker/install/ubuntu_install_caffe.sh @@ -25,9 +25,6 @@ apt-get install -y --no-install-recommends protobuf-compiler \ libprotobuf-dev libhdf5-serial-dev libopenblas-dev libgflags-dev libgoogle-glog-dev -# install python packages -pip install "numpy" "protobuf" "scikit-image" "six" - # Build the Caffe and the python wrapper echo "Downloading Caffe" CAFFE_HOME="/opt/caffe" diff --git a/docker/install/ubuntu_install_coreml.sh b/docker/install/ubuntu_install_coreml.sh deleted file mode 100755 index cbdc87666b..0000000000 --- a/docker/install/ubuntu_install_coreml.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip3 install coremltools diff --git a/docker/install/ubuntu_install_darknet.sh b/docker/install/ubuntu_install_darknet.sh deleted file mode 100755 index 8020899f8b..0000000000 --- a/docker/install/ubuntu_install_darknet.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -#install the necessary dependancies, cffi, opencv -wget -q 'https://github.com/siju-samuel/darknet/blob/master/lib/libdarknet.so?raw=true' -O libdarknet.so -debian_version=`cat /etc/debian_version` - -pip3 install \ - cffi \ - opencv-python diff --git a/docker/install/ubuntu_install_mxnet.sh b/docker/install/ubuntu_install_mxnet.sh deleted file mode 100755 index aa04d4c191..0000000000 --- a/docker/install/ubuntu_install_mxnet.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip3 install mxnet==1.6.0 diff --git a/docker/install/ubuntu_install_oneflow.sh b/docker/install/ubuntu_install_oneflow.sh deleted file mode 100755 index 3eb6b7d89b..0000000000 --- a/docker/install/ubuntu_install_oneflow.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip3 install flowvision==0.1.0 - -python3 -m pip install -f https://release.oneflow.info oneflow==0.7.0+cpu diff --git a/docker/install/ubuntu_install_onnx.sh b/docker/install/ubuntu_install_onnx.sh deleted file mode 100755 index 6a41a55740..0000000000 --- a/docker/install/ubuntu_install_onnx.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -# We need to fix the onnx version because changing versions tends to break tests -# TODO(mbrookhart): periodically update - -# onnx 1.9 removed onnx optimizer from the main repo (see -# https://github.com/onnx/onnx/pull/2834). When updating the CI image -# to onnx>=1.9, onnxoptimizer should also be installed. -pip3 install \ - onnx==1.10.2 \ - onnxruntime==1.9.0 \ - onnxoptimizer==0.2.6 - -# torch depends on a number of other packages, but unhelpfully, does -# not expose that in the wheel!!! -pip3 install future - -pip3 install \ - torch==1.11.0 \ - torchvision==0.12.0 \ - --extra-index-url https://download.pytorch.org/whl/cpu diff --git a/docker/install/ubuntu_install_paddle.sh b/docker/install/ubuntu_install_paddle.sh deleted file mode 100755 index c7f9d43a3b..0000000000 --- a/docker/install/ubuntu_install_paddle.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip install paddlepaddle==2.1.3 diff --git a/docker/install/ubuntu_install_python.sh b/docker/install/ubuntu_install_python.sh index b71398ad5f..d20a716cb8 100755 --- a/docker/install/ubuntu_install_python.sh +++ b/docker/install/ubuntu_install_python.sh @@ -38,3 +38,6 @@ cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py # Pin pip and setuptools versions pip3 install pip==19.3.1 setuptools==58.4.0 + +# Globally disable pip cache +pip config set global.no-cache-dir false diff --git a/docker/install/ubuntu_install_python_package.sh b/docker/install/ubuntu_install_python_package.sh index 0b0c9895f5..f4ba7596ae 100755 --- a/docker/install/ubuntu_install_python_package.sh +++ b/docker/install/ubuntu_install_python_package.sh @@ -21,5 +21,7 @@ set -u set -o pipefail cd $(dirname $0)/python -poetry config settings.virtualenvs.create false +poetry config cache-dir /tmp/poetry-cache +poetry config virtualenvs.create false +poetry config virtualenvs.path /virtualenv/tvm poetry install --no-root diff --git a/docker/install/ubuntu_install_redis.sh b/docker/install/ubuntu_install_redis.sh index 8678c20501..615415f557 100755 --- a/docker/install/ubuntu_install_redis.sh +++ b/docker/install/ubuntu_install_redis.sh @@ -21,5 +21,3 @@ set -u set -o pipefail apt-get update && apt-get install -y redis-server -pip3 install \ - xgboost==1.4.2 diff --git a/docker/install/ubuntu_install_sphinx.sh b/docker/install/ubuntu_install_sphinx.sh deleted file mode 100755 index 12ca25b22b..0000000000 --- a/docker/install/ubuntu_install_sphinx.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -# NOTE: install docutils < 0.17 to work around https://github.com/readthedocs/sphinx_rtd_theme/issues/1115 -pip3 install \ - autodocsumm \ - "commonmark>=0.7.3" \ - "docutils>=0.11,<0.17" \ - Image \ - matplotlib \ - sphinx==4.2.0 \ - sphinx_autodoc_annotation \ - sphinx-gallery==0.4.0 \ - sphinx_rtd_theme diff --git a/docker/install/ubuntu_install_tensorflow.sh b/docker/install/ubuntu_install_tensorflow.sh deleted file mode 100755 index eaf89ffcf8..0000000000 --- a/docker/install/ubuntu_install_tensorflow.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip3 install \ - "h5py==3.1.0" \ - keras==2.6 \ - tensorflow==2.6.2 diff --git a/docker/install/ubuntu_install_tensorflow_aarch64.sh b/docker/install/ubuntu_install_tensorflow_aarch64.sh index 6acf8b7270..cfb05ac1de 100755 --- a/docker/install/ubuntu_install_tensorflow_aarch64.sh +++ b/docker/install/ubuntu_install_tensorflow_aarch64.sh @@ -20,11 +20,3 @@ set -euxo pipefail # Build dependencies apt-get install -y --no-install-recommends libhdf5-dev - -# We're only using the TensorFlow wheel snapshot here as the -# h5py wheel tries to use the wrong .so file -pip3 install \ - "h5py==3.1.0" \ - keras==2.6 \ - tensorflow-aarch64==2.6.2 \ - -f https://snapshots.linaro.org/ldcg/python-cache/tensorflow-aarch64/ diff --git a/docker/install/ubuntu_install_tflite.sh b/docker/install/ubuntu_install_tflite.sh deleted file mode 100755 index 8a394302fd..0000000000 --- a/docker/install/ubuntu_install_tflite.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -# The tflite version should have matched versions to the tensorflow -# version installed from pip in ubuntu_install_tensorflow.sh -TENSORFLOW_VERSION=$(python3 -c "import tensorflow; print(tensorflow.__version__)" 2> /dev/null) - -# Download, build and install flatbuffers -git clone --branch=v1.12.0 --depth=1 --recursive https://github.com/google/flatbuffers.git -cd flatbuffers -cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -make install -j8 -cd .. - -# Install flatbuffers python packages. -pip3 install flatbuffers - -# Build the TFLite static library, necessary for building with TFLite ON. -# The library is built at: -# tensorflow/tensorflow/lite/tools/make/gen/*/lib/libtensorflow-lite.a. -git clone https://github.com/tensorflow/tensorflow --branch=v${TENSORFLOW_VERSION} --depth 1 -./tensorflow/tensorflow/lite/tools/make/download_dependencies.sh -./tensorflow/tensorflow/lite/tools/make/build_lib.sh - -# Setup tflite from schema -mkdir tflite -cp tensorflow/tensorflow/lite/schema/schema.fbs tflite -cd tflite -flatc --python schema.fbs - -cat <<EOM >setup.py -import setuptools - -setuptools.setup( - name="tflite", - version="${TENSORFLOW_VERSION}", - author="google", - author_email="[email protected]", - description="TFLite", - long_description="TFLite", - long_description_content_type="text/markdown", - url="https://www.tensorflow.org/lite", - packages=setuptools.find_packages(), - classifiers=[ - "Programming Language :: Python :: 2", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - ], -) -EOM - -cat <<EOM >__init__.py -name = "tflite" -EOM - -# Install tflite over python3 -python3 setup.py install - -cd .. -rm -rf tflite diff --git a/docker/install/ubuntu_install_vela.sh b/docker/install/ubuntu_install_vela.sh deleted file mode 100755 index c72d118233..0000000000 --- a/docker/install/ubuntu_install_vela.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -set -e -set -u -set -o pipefail - -pip3 install ethos-u-vela==3.2.0
