Skip to content

Commit

Permalink
ci: support pip3 for python 3.12 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Dec 19, 2024
1 parent 24080ed commit 98ec04f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
7 changes: 6 additions & 1 deletion cibw_before_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98ec04f

Please sign in to comment.