Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade old Python version in packaging pipeline #16667

Merged
merged 6 commits into from
Jul 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use Python 3.8 in tools/ci_build/github/linux/docker/inference/aarch6…
…4/default/cpu Docker image.
  • Loading branch information
edgchen1 committed Jul 12, 2023
commit fd55bab30ce2030f1d8080d5b65dc0ceb6cfc063
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ os_major_version=$(cat /etc/redhat-release | tr -dc '0-9.'|cut -d \. -f1)

echo "installing for CentOS version : $os_major_version"
yum install -y centos-release-scl-rh
yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc-gfortran python3 python3-pip
yum install -y which gdb redhat-lsb-core expat-devel tar unzip zlib-devel make libunwind bzip2 bzip2-devel java-11-openjdk-devel graphviz devtoolset-10-binutils devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-gcc-gfortran rh-python38-python rh-python38-python-pip

/opt/rh/rh-python38/root/usr/bin/python3.8 -m pip install --upgrade pip

# enable Python 3.8 by default
echo "source scl_source enable rh-python38" > /etc/profile.d/enablepython38.sh

pip3 install --upgrade pip
localedef -i en_US -f UTF-8 en_US.UTF-8