Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions control/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ if [ -z ${CI_TEST} ]; then
fi
fi

# Upgrade pip to required version before any pip operations
# This must happen in both CI and local environments
# This pin can be removed when https://github.com/jazzband/pip-tools/issues/2252 is resolved
pip install --upgrade pip==25.2

# check for unsupported python version after virtual env is activated
python_version=`python --version 2>&1 | awk '{print $2}'`
if [[ $python_version = 3.6* ]]; then
Expand Down Expand Up @@ -97,8 +102,7 @@ if [ -z "$(which manage-commcare-cloud)" ]; then
# first time install need requirements installed in serial
# installs strictly what's in requirements.txt, so versions are pre-pinned
cd ${COMMCARE_CLOUD_REPO}
pip install --upgrade pip-tools

pip install --quiet --upgrade pip-tools

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this change necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary. Since it runs in non-interactive mode, I added --quiet parameter.

uninstall-lowerversion-ansible
pip-sync requirements.txt
pip install --editable .
Expand All @@ -118,7 +122,7 @@ fi

echo "Downloading dependencies from galaxy and pip"
export ANSIBLE_ROLES_PATH=~/.ansible/roles
COMMCARE= pip install --quiet --upgrade pip &
# COMMCARE= pip install --quiet --upgrade pip &
COMMCARE= manage-commcare-cloud install & # includes ansible-galaxy install

# wait for all processes that _we_ started
Expand Down