Skip to content
Snippets Groups Projects
Commit 04c82cc6 authored by calrama's avatar calrama
Browse files

[centos] add python 3.9.1

parent b6593020
Branches
No related tags found
No related merge requests found
Pipeline #35108 passed
......@@ -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 && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment