Skip to content

Commit

Permalink
Manually install python39 on amazon linux (#708)
Browse files Browse the repository at this point in the history
## Usage and product changes
Manually install python39 on amazon linux
  • Loading branch information
krishnangovindraj authored Nov 3, 2024
1 parent fb60098 commit 9a61b0a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,18 @@ commands:
type: string
steps:
- run: |
amazon-linux-extras install python3.9 java-openjdk11 -y
yum install -y git tar gcc gcc-c++ file lsof which procps
ln -s /usr/bin/python3.9 /usr/bin/python3
amazon-linux-extras install java-openjdk11 -y
yum install wget make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel file lsof which procps tar git -y
cd /tmp
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
tar -xvf Python-3.9.6.tgz
cd Python-3.9.6
./configure --enable-optimizations --enable-shared
make altinstall
echo "/usr/local/lib" >> /etc/ld.so.conf.d/python3.9.conf
ldconfig
ln -s /usr/local/bin/python3.9 /usr/bin/python3
curl -OL "https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-<<parameters.bazel-arch>>"
mv "bazelisk-linux-<<parameters.bazel-arch>>" /usr/local/bin/bazel
chmod a+x /usr/local/bin/bazel
Expand Down

0 comments on commit 9a61b0a

Please sign in to comment.