diff --git a/centos/Dockerfile b/centos/Dockerfile index 7cdddc831289a4cac302e8d619d934a389dee525..c1df189c2c85cb528ae921ba931b574c776e3e79 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 && \