summaryrefslogtreecommitdiffstats
path: root/tools/scripts
diff options
context:
space:
mode:
authorShane McDonald <me@shanemcd.com>2019-01-12 03:18:56 +0100
committerRyan Petrello <rpetrell@redhat.com>2019-01-15 20:09:05 +0100
commitd27347292781327ccb2a8796bf6d383621b56301 (patch)
treedda063bd4bbc29dd53e881895eae8266dbf7827b /tools/scripts
parentDependency updates for Python 3 (diff)
downloadawx-d27347292781327ccb2a8796bf6d383621b56301.tar.xz
awx-d27347292781327ccb2a8796bf6d383621b56301.zip
Enable py3 SCL if needed
Diffstat (limited to 'tools/scripts')
-rwxr-xr-xtools/scripts/awx-python9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scripts/awx-python b/tools/scripts/awx-python
index f45c27bb80..776a2473b3 100755
--- a/tools/scripts/awx-python
+++ b/tools/scripts/awx-python
@@ -1,5 +1,14 @@
#!/bin/bash
+# Enable needed Software Collections, if installed
+for scl in rh-python36; do
+ if [ -f /etc/scl/prefixes/$scl ]; then
+ if [ -f `cat /etc/scl/prefixes/$scl`/$scl/enable ]; then
+ . `cat /etc/scl/prefixes/$scl`/$scl/enable
+ fi
+ fi
+done
+
# Enable Tower virtualenv
if [ -f /var/lib/awx/venv/awx/bin/activate ]; then
. /var/lib/awx/venv/awx/bin/activate