drillan / amazonlinux2-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

amazonlinux2-python

Building Python binaries in Amazon Linux 2 environment.

Building Docker Image

git clone https://github.com/drillan/amazonlinux2-python.git
cd amazonlinux2-python
docker build -t amazonlinux2-python .

Building Python binaries

Example for Python 3.10.9

docker run --rm -v $PWD:/build -e PYTHON_VERSION=3.10.9 amazonlinux2-python

python3.10.9.tar.xz is generated in your current directory

In your Amazon Linux 2 emviorment

Copy tar.xz file into your Amazon Linux 2 environment

Example for Python 3.10.9

yum install -y tar xz gzip openssl11 openssl11-devel
tar xJf python3.10.9.tar.xz -C /usr/local

Enjoy Python

python3.10 -V

About


Languages

Language:Shell 53.1%Language:Dockerfile 46.9%