Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/sp-deployment-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
sudo git clean -f -d
sudo git pull origin $DEPLOY_BRANCH

sudo python -m pip install -r requirements.txt
sudo python3 -m pip install -r requirements.txt --break-system-packages
sudo FLASK_APP=./run.py flask db upgrade

sudo cp "install/ci-vm/ci-linux/ci/bootstrap" "${SAMPLE_REPOSITORY}/TestData/ci-linux/bootstrap" 2>/dev/null || true
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
PREV_COMMIT=$(cat /tmp/previous_commit.txt)
echo "Rolling back to commit: $PREV_COMMIT"
sudo git checkout "$PREV_COMMIT"
sudo python -m pip install -r requirements.txt
sudo python3 -m pip install -r requirements.txt --break-system-packages
sudo systemctl reload platform
echo "Rollback complete"
else
Expand Down
2 changes: 1 addition & 1 deletion install/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ echo "✓ Updated to commit: $NEW_COMMIT"
# Step 4: Update dependencies
echo ""
echo "--- Step 3: Updating dependencies ---"
python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check
python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check --break-system-packages
echo "✓ Dependencies updated"

# Step 5: Run database migrations
Expand Down
2 changes: 1 addition & 1 deletion install/deploy/rollback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fi
# Step 3: Reinstall dependencies for rolled-back version
echo ""
echo "--- Step 3: Reinstalling dependencies ---"
python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check
python3 -m pip install -r requirements.txt --quiet --disable-pip-version-check --break-system-packages
echo "✓ Dependencies reinstalled"

# Step 4: Reload application
Expand Down
4 changes: 2 additions & 2 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ userInput () {
}

echo "* Update pip, setuptools and wheel"
python3 -m pip install --upgrade pip setuptools wheel >> "$install_log" 2>&1
python3 -m pip install --upgrade pip setuptools wheel --break-system-packages >> "$install_log" 2>&1
echo "* Installing pip dependencies"
python3 -m pip install -r "${root_dir}/requirements.txt" >> "$install_log" 2>&1
python3 -m pip install -r "${root_dir}/requirements.txt" --break-system-packages >> "$install_log" 2>&1
echo ""
echo "-------------------------------"
echo "| Configuration |"
Expand Down
Loading