From 3e90b086e0247406579cedb83d5c4f8b7a301dc2 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 22 Jul 2023 19:47:42 +0800 Subject: [PATCH] small fixes --- scripts/github_actions/build-ubuntu-cpu.sh | 13 ++++++++++--- scripts/github_actions/generate_build_matrix.py | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/github_actions/build-ubuntu-cpu.sh b/scripts/github_actions/build-ubuntu-cpu.sh index bc65314..b4f8af9 100755 --- a/scripts/github_actions/build-ubuntu-cpu.sh +++ b/scripts/github_actions/build-ubuntu-cpu.sh @@ -19,9 +19,16 @@ echo "Installing ${PYTHON_VERSION}.1" yum -y install openssl-devel bzip2-devel libffi-devel xz-devel wget redhat-lsb-core -curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}.1/Python-${PYTHON_VERSION}.1.tgz -tar xf Python-${PYTHON_VERSION}.1.tgz -pushd Python-${PYTHON_VERSION}.1 + +if [[ $PYTHON_VERSION == 3.6 ]]; then + curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}.1/Python-${PYTHON_VERSION}.1.tgz + tar xf Python-${PYTHON_VERSION}.1.tgz + pushd Python-${PYTHON_VERSION}.1 +else + curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}.9/Python-${PYTHON_VERSION}.1.tgz + tar xf Python-${PYTHON_VERSION}.9.tgz + pushd Python-${PYTHON_VERSION}.9 +fi PYTHON_INSTALL_DIR=$PWD/py-${PYTHON_VERSION} diff --git a/scripts/github_actions/generate_build_matrix.py b/scripts/github_actions/generate_build_matrix.py index 2319868..354b984 100755 --- a/scripts/github_actions/generate_build_matrix.py +++ b/scripts/github_actions/generate_build_matrix.py @@ -163,6 +163,8 @@ def generate_build_matrix(enable_cuda, for_windows, for_macos, test_only_latest_ ans.append({"torch": torch, "python-version": p, "cuda": c}) else: for p in python_versions: + if p != "3.6": + continue if for_windows or for_macos: p = "cp" + "".join(p.split(".")) ans.append({"torch": torch, "python-version": p})