Skip to content

Commit

Permalink
ansible: add Python 3 to centos7-arm64 hosts
Browse files Browse the repository at this point in the history
Installs Python 3.8, enabled via `. /opt/rh/rh-python38/enable`.
  • Loading branch information
richardlau committed Mar 22, 2021
1 parent 6882ed5 commit 656cf93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/baselayout/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ packages: {

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

Expand Down
4 changes: 4 additions & 0 deletions jenkins/scripts/select-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ elif [ "$SELECT_ARCH" = "X64" ]; then
elif [ "$SELECT_ARCH" = "ARM64" ]; then
echo "Setting compiler for Node version $NODEJS_MAJOR_VERSION on arm64"

if [ "$NODEJS_MAJOR_VERSION" -gt "13" ]; then
. /opt/rh/rh-python38/enable
echo "Enabled Python 3.8"
fi

case $nodes in
centos7-arm64-gcc8 )
Expand Down

0 comments on commit 656cf93

Please sign in to comment.