diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e43642..e154059 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,13 @@ jobs: - name: Install dependencies run: | sudo apt update - sudo apt-get --assume-yes install cmake swig pkg-config clang libclang-dev llvm wget unzip python3-wheel python3-setuptools build-essential python3-pip && sudo pip3 install meson ninja + sudo apt-get --assume-yes install cmake swig pkg-config clang libclang-dev llvm wget unzip python3-wheel python3-setuptools build-essential python3-pip + pygt311=$(python3 -c 'import sys; print(0) if sys.version_info.minor > 11 else print(1)' 2>&1) + if [[ $pygt311 == '0' ]]; then + sudo pip3 --break-system-packages install meson ninja + else + sudo pip3 install meson ninja + fi - name: Install rizin run: | diff --git a/cibw_before_all.sh b/cibw_before_all.sh index d6ce0f0..b76120d 100644 --- a/cibw_before_all.sh +++ b/cibw_before_all.sh @@ -4,7 +4,12 @@ set -ex # Install deps -pip3 install meson ninja meson-python build +pygt311=$(python3 -c 'import sys; print(0) if sys.version_info.minor > 11 else print(1)' 2>&1) +if [[ $pygt311 == '0' ]]; then + pip3 install --break-system-packages meson ninja meson-python build +else + pip3 install meson ninja meson-python build +fi if command -v apt; then set +e