Skip to content

Commit

Permalink
CI: python/pip: another try for PEP 668 workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Oberbrunner <garyo@darkstarsystems.com>
  • Loading branch information
garyo committed May 7, 2024
1 parent a258f6e commit f7e1182
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,11 @@ jobs:
echo "CONAN_PRESET=conan-$BUILDTYPE_LC" >> $GITHUB_ENV
echo "BUILD_DIR=build/${{ matrix.buildtype }}" >> $GITHUB_ENV
- name: update Python pip
run: |
mkdir -p "$HOME/.config/pip"
# work around PEP 668, "This environment is externally managed"
echo "[global]\nbreak-system-packages = true" >> "$HOME/.config/pip/pip.conf"
python3 -mpip install --upgrade pip
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'

- name: Install Conan
id: conan
Expand Down

0 comments on commit f7e1182

Please sign in to comment.