Commit 7de0cacf authored by Valentin Vautrot's avatar Valentin Vautrot

Added python 3.9 installation without any other version of python.

parent f7c865ff
......@@ -3,16 +3,28 @@ From: centos:8
%help
# in progress
This is a singularity container packing a python 3.11 environment with all the packages necessary to execute all the python scripts present in the pipeline full_wes 2.10.0
This is a singularity container packing a python 3.9 (only version) environment with all the packages necessary to execute all the python scripts present in the version 2.10.0 of the gad pipeline.
Python 3.9 is the latest available version in CentOS 8 used for this build.
Authors : valentin.vautrot@u-bourgogne.fr
%post
#preferably use dnf over yum now, but the mirror adresses are still in yum.repos.d
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
dnf install -y epel-release
dnf update -y --exclude=filesystem
# only if needed later :
# dnf install -y epel-release
dnf install -y python3.11-3.11-4-4
\ No newline at end of file
dnf install -y python39
dnf remove -y python3 && dnf autoremove
# by safety but useless, "python3" not found. The python3 present in /usr/bin is created with python3.9 install, so it is only a dependency ? python3 --version is 3.9.6 alright.
# install python packages
# pip3.9 install -t /usr/lib/python3.9/site-packages/
%files
# import custom python packages from ccub. TO MODIFY FOR LOCAL MACHINE
/work/gad/shared/pipeline/2.10.0/common/GeneralTools.py /usr/lib/python3.9/site-packages
# %environment
# export PYTHONPATH="/usr/lib/python3.9:/usr/lib/python3.9/site-packages/"
# export PYTHON="usr/bin/python3.9"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment