Skip to content

Commit 656cf93

Browse files
committed
ansible: add Python 3 to centos7-arm64 hosts
Installs Python 3.8, enabled via `. /opt/rh/rh-python38/enable`.
1 parent 6882ed5 commit 656cf93

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ansible/roles/baselayout/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ packages: {
4040

4141
# centos-release-scl is required to enable SCLo but we do it manually in
4242
# partials/repo/centos7.yml for arm64
43-
centos7_arm64: ['git'], # git2u not available for aarch64 (yet)
43+
centos7_arm64: ['git,rh-python38-python'], # git2u not available for aarch64 (yet)
4444
centos7_x64: ['devtoolset-6-libatomic-devel,git2u,centos-release-scl'],
4545
centos7_ppc64: ['cmake3,devtoolset-6-libatomic-devel,git,python3'],
4646

jenkins/scripts/select-compiler.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ elif [ "$SELECT_ARCH" = "X64" ]; then
167167
elif [ "$SELECT_ARCH" = "ARM64" ]; then
168168
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on arm64"
169169

170+
if [ "$NODEJS_MAJOR_VERSION" -gt "13" ]; then
171+
. /opt/rh/rh-python38/enable
172+
echo "Enabled Python 3.8"
173+
fi
170174

171175
case $nodes in
172176
centos7-arm64-gcc8 )

0 commit comments

Comments
 (0)