Skip to content

Commit 05c70d7

Browse files
committed
Bump python version to 3.9
1 parent bc96ba9 commit 05c70d7

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

coldfront/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ ARCHTYPE=`uname -m`
1111

1212
log_info "Installing required packages for coldfront.."
1313
dnf install -y \
14-
python3 \
15-
python3-devel \
14+
python39-devel \
1615
memcached \
1716
nginx \
1817
openssl \

slurm/install.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ log_info() {
88
}
99

1010
SLURM_VERSION=${SLURM_VERSION:-21.08.8-2}
11-
WEBSOCKIFY_VERSION=${WEBSOCKIFY_VERSION:-0.8.0}
11+
WEBSOCKIFY_VERSION=${WEBSOCKIFY_VERSION:-0.11.0}
1212
ARCHTYPE=`uname -m`
1313

1414
log_info "Installing required packages for building slurm.."
1515
curl -o /etc/yum.repos.d/turbovnc.repo https://turbovnc.org/pmwiki/uploads/Downloads/TurboVNC.repo
1616
dnf -y install dnf-plugins-core
1717
dnf -y config-manager --set-enabled powertools
18-
dnf -y module enable ruby:2.7 nodejs:12
18+
dnf -y module enable ruby:3.0 nodejs:14
1919
dnf install -y \
2020
@Development \
2121
munge \
@@ -33,21 +33,23 @@ dnf install -y \
3333
mariadb \
3434
turbovnc \
3535
mariadb-devel \
36-
python3 \
36+
python39 \
3737
python2-numpy \
3838
kitty-terminfo \
3939
stress
4040

4141
log_info "Installing compute packages .."
4242

43+
alternatives --set python3 /usr/bin/python3.9
44+
4345
dnf groupinstall -y "Xfce"
4446

4547
log_info "Compiling python-websockify version ${WEBSOCKIFY_VERSION}.."
4648
wget -O /tmp/websockify-${WEBSOCKIFY_VERSION}.tar.gz https://github.com/novnc/websockify/archive/refs/tags/v${WEBSOCKIFY_VERSION}.tar.gz
4749
pushd /tmp
4850
tar xzf websockify-${WEBSOCKIFY_VERSION}.tar.gz
4951
pushd websockify-${WEBSOCKIFY_VERSION}
50-
python2 setup.py install
52+
python3 setup.py install
5153
popd
5254
rm -rf /tmp/websockify*
5355

@@ -109,7 +111,7 @@ sed -i 's#^LOCALHOSTNAME.*$#LOCALHOSTNAME y n "/home/pcp/$(date +%Y)/$(dat
109111
log_info "Installing Jupyter.."
110112
python3 -m venv --without-pip --prompt jupyter/2.1.4 /usr/local/jupyter/2.1.4
111113
source /usr/local/jupyter/2.1.4/bin/activate
112-
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python
114+
curl https://bootstrap.pypa.io/get-pip.py | python
113115

114116
pip install jupyterlab==2.1.4 jupyter-console qtconsole ipywidgets plotly==4.8.2 pandas scikit-learn numpy
115117
deactivate

0 commit comments

Comments
 (0)