small fixes

This commit is contained in:
Fangjun Kuang 2023-07-22 19:47:42 +08:00
parent 372de2d22c
commit 3e90b086e0
2 changed files with 12 additions and 3 deletions

View File

@ -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}

View File

@ -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})