Skip to content

Commit 9a61b0a

Browse files
Manually install python39 on amazon linux (#708)
## Usage and product changes Manually install python39 on amazon linux
1 parent fb60098 commit 9a61b0a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.circleci/config.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,18 @@ commands:
6464
type: string
6565
steps:
6666
- run: |
67-
amazon-linux-extras install python3.9 java-openjdk11 -y
68-
yum install -y git tar gcc gcc-c++ file lsof which procps
69-
ln -s /usr/bin/python3.9 /usr/bin/python3
67+
amazon-linux-extras install java-openjdk11 -y
68+
yum install wget make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel file lsof which procps tar git -y
69+
70+
cd /tmp
71+
wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz
72+
tar -xvf Python-3.9.6.tgz
73+
cd Python-3.9.6
74+
./configure --enable-optimizations --enable-shared
75+
make altinstall
76+
echo "/usr/local/lib" >> /etc/ld.so.conf.d/python3.9.conf
77+
ldconfig
78+
ln -s /usr/local/bin/python3.9 /usr/bin/python3
7079
curl -OL "https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-<<parameters.bazel-arch>>"
7180
mv "bazelisk-linux-<<parameters.bazel-arch>>" /usr/local/bin/bazel
7281
chmod a+x /usr/local/bin/bazel

0 commit comments

Comments
 (0)