@@ -356,20 +356,26 @@ jobs:
356356 ref : ${{ env.SAMPLES_REVISION }}
357357 token : ${{ secrets.GITHUB_TOKEN }}
358358 path : khiops-samples
359+ - name : Hack for pip under debian13
360+ if : matrix.container == 'debian13'
361+ run : |
362+ # Hack for pip under debian, the alternatives are using venv or pipx
363+ BREAK_SYSTEM_PACKAGES_FLAG="--break-system-packages"
364+ echo "BREAK_SYSTEM_PACKAGES_FLAG=${BREAK_SYSTEM_PACKAGES_FLAG}" >> $GITHUB_ENV
359365 - name : Install khiops-python dev dependencies
360366 run : |
361367 # The following git command is required,
362368 # as the Git repository is in a directory the current user does not own,
363369 # Python versioneer fails to compute the current version correctly otherwise
364370 git config --global --add safe.directory $(realpath .)
365371 # Install tomli for Python < 3.11
366- pip install --user tomli
372+ pip install ${BREAK_SYSTEM_PACKAGES_FLAG} tomli
367373 python scripts/extract_dependencies_from_pyproject_toml.py -f "pyproject.toml" > requires.txt
368- pip install --user `cat requires.txt`
374+ pip install ${BREAK_SYSTEM_PACKAGES_FLAG} `cat requires.txt`
369375 rm -f requires.txt
370376 - name : Setup and Install Test Requirements
371377 run : |
372- pip install -r test-requirements.txt
378+ pip install ${BREAK_SYSTEM_PACKAGES_FLAG} -r test-requirements.txt
373379 - name : Test Khiops Integration
374380 env :
375381 # Force > 2 CPU cores to launch mpiexec
0 commit comments