File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 sudo git clean -f -d
8282 sudo git pull origin $DEPLOY_BRANCH
8383
84- sudo python -m pip install -r requirements.txt
84+ sudo python3 -m pip install -r requirements.txt --break-system-packages
8585 sudo FLASK_APP=./run.py flask db upgrade
8686
8787 sudo cp "install/ci-vm/ci-linux/ci/bootstrap" "${SAMPLE_REPOSITORY}/TestData/ci-linux/bootstrap" 2>/dev/null || true
@@ -156,7 +156,7 @@ jobs:
156156 PREV_COMMIT=$(cat /tmp/previous_commit.txt)
157157 echo "Rolling back to commit: $PREV_COMMIT"
158158 sudo git checkout "$PREV_COMMIT"
159- sudo python -m pip install -r requirements.txt
159+ sudo python3 -m pip install -r requirements.txt --break-system-packages
160160 sudo systemctl reload platform
161161 echo "Rollback complete"
162162 else
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ echo "✓ Updated to commit: $NEW_COMMIT"
4545# Step 4: Update dependencies
4646echo " "
4747echo " --- Step 3: Updating dependencies ---"
48- python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check
48+ python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check --break-system-packages
4949echo " ✓ Dependencies updated"
5050
5151# Step 5: Run database migrations
Original file line number Diff line number Diff line change 8484# Step 3: Reinstall dependencies for rolled-back version
8585echo " "
8686echo " --- Step 3: Reinstalling dependencies ---"
87- python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check
87+ python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check --break-system-packages
8888echo " ✓ Dependencies reinstalled"
8989
9090# Step 4: Reload application
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ userInput () {
6464}
6565
6666echo " * Update pip, setuptools and wheel"
67- python3 -m pip install --upgrade pip setuptools wheel >> " $install_log " 2>&1
67+ python3 -m pip install --upgrade pip setuptools wheel --break-system-packages >> " $install_log " 2>&1
6868echo " * Installing pip dependencies"
69- python3 -m pip install -r " ${root_dir} /requirements.txt" >> " $install_log " 2>&1
69+ python3 -m pip install -r " ${root_dir} /requirements.txt" --break-system-packages >> " $install_log " 2>&1
7070echo " "
7171echo " -------------------------------"
7272echo " | Configuration |"
You can’t perform that action at this time.
0 commit comments