Skip to content

Commit e46e091

Browse files
authored
fix(ci): add --break-system-packages and python3 for PEP 668 on Python 3.12 (#1129)
1 parent 9174e9b commit e46e091

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/sp-deployment-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
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

install/deploy/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ echo "✓ Updated to commit: $NEW_COMMIT"
4545
# Step 4: Update dependencies
4646
echo ""
4747
echo "--- 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
4949
echo "✓ Dependencies updated"
5050

5151
# Step 5: Run database migrations

install/deploy/rollback.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fi
8484
# Step 3: Reinstall dependencies for rolled-back version
8585
echo ""
8686
echo "--- 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
8888
echo "✓ Dependencies reinstalled"
8989

9090
# Step 4: Reload application

install/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ userInput () {
6464
}
6565

6666
echo "* 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
6868
echo "* 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
7070
echo ""
7171
echo "-------------------------------"
7272
echo "| Configuration |"

0 commit comments

Comments
 (0)