Skip to content

Commit 4902b78

Browse files
Add scripts for python 3.10 (#201)
1 parent 76a9722 commit 4902b78

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/prechecks-unix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
python-version: [ '3.6', '3.8', '3.9' ]
51+
python-version: [ '3.6', '3.8', '3.9', '3.10' ]
5252
env:
5353
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
5454
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
set -x
3+
4+
echo ++ Install required dependencies
5+
sudo yum install -y openssl-devel libffi-devel bzip2-devel
6+
gcc --version
7+
8+
echo ++ Install Python3.10
9+
cd /opt
10+
sudo curl -O https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz && sudo tar xvf Python-3.10.0.tgz
11+
12+
# echo ++ Updating PATH
13+
export PATH=/usr/local/bin:$PATH
14+
15+
cd Python-3.10.0
16+
sudo ./configure --enable-optimizations
17+
sudo make altinstall
18+
19+
# ### Check installed python versions ##
20+
#sudo ls /usr/local/bin/python*
21+
22+
echo ++ Install pipenv
23+
pip3.10 install pipenv
24+
25+
echo ++ Check packaging
26+
cd /home/ec2-user/machine_stats/unix
27+
pipenv install --python /usr/local/bin/python3.10
28+
29+
echo ++ Run machine stats
30+
pipenv run machine-stats -h
31+
32+
echo ++++ DONE ++++

0 commit comments

Comments
 (0)