Skip to content

Commit

Permalink
fix installing openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Jan 31, 2025
1 parent 710060f commit 3dd764b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/github_actions/build-ubuntu-cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ if [[ $TORCH_VERSION =~ 2.2.* && $CUDA_VERSION =~ 12.* ]]; then
export TORCH_CUDA_ARCH_LIST="8.0 8.6 8.9 9.0"
fi

yum -y install openssl-devel bzip2-devel libffi-devel xz-devel wget redhat-lsb-core
if [[ x"$IS_2_28" != x"1" ]]; then
yum -y install openssl-devel
fi

yum -y install bzip2-devel libffi-devel xz-devel wget redhat-lsb-core

INSTALLED_PYTHON_VERSION=${PYTHON_VERSION}.2
if [[ $PYTHON_VERSION == "3.13" ]]; then
Expand All @@ -41,7 +45,7 @@ pushd Python-$INSTALLED_PYTHON_VERSION

PYTHON_INSTALL_DIR=$PWD/py-${PYTHON_VERSION}

if [[ $PYTHON_VERSION =~ 3.1. ]]; then
if [[ $PYTHON_VERSION =~ 3.1. && x"$IS_2_28" != x"1" ]]; then
yum install -y openssl11-devel
sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure
fi
Expand Down

0 comments on commit 3dd764b

Please sign in to comment.