From 04c82cc65eaf4d5a5e839cc079edba7ff6c07927 Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Tue, 9 Feb 2021 11:05:56 +0100
Subject: [PATCH] [centos] add python 3.9.1

---
 centos/Dockerfile | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/centos/Dockerfile b/centos/Dockerfile
index 7cdddc8..c1df189 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -413,6 +413,32 @@ RUN version=3.8.6 && \
     rm -rf Python-${version}* && \
     ldconfig
 
+# Python 3.9
+RUN version=3.9.1 && \
+    yum install -y \
+        openssl-devel \
+        libffi-devel \
+        sqlite-devel \
+        && \
+    yum clean all && \
+    source /etc/profile && \
+    cd /tmp && \
+    curl -sSLO https://www.python.org/ftp/python/${version}/Python-${version}.tgz && \
+    tar -xf Python-${version}.tgz && \
+    cd Python-${version} && \
+    ./configure \
+        --prefix=/usr \
+        --enable-optimizations \
+        --enable-shared \
+        --with-ensurepip=install \
+        --with-system-expat \
+        --with-system-ffi \
+        && \
+    make -j$(nproc) altinstall && \
+    cd .. && \
+    rm -rf Python-${version}* && \
+    ldconfig
+
 # Python 3.7 packages
 RUN python3.7 -m pip --no-cache-dir install \
         wheel \
@@ -429,6 +455,14 @@ RUN python3.8 -m pip --no-cache-dir install \
         pandas \
         h5py
 
+# Python 3.9 packages
+RUN python3.9 -m pip --no-cache-dir install \
+        wheel \
+        twine \
+        pytest \
+        pandas \
+        h5py
+
 # xsimd
 RUN name=xsimd && \
     version=7.4.9 && \
-- 
GitLab